-
Notifications
You must be signed in to change notification settings - Fork 481
/
Copy path34992.bc7967ad5259228e.js
1 lines (1 loc) · 1.52 KB
/
34992.bc7967ad5259228e.js
1
(self.webpackChunkdemo=self.webpackChunkdemo||[]).push([[34992],{34992:t=>{t.exports="import {NgFor} from '@angular/common';\nimport {Component} from '@angular/core';\nimport {changeDetection} from '@demo/emulate/change-detection';\nimport {encapsulation} from '@demo/emulate/encapsulation';\nimport {TuiCarousel, TuiPagination} from '@taiga-ui/kit';\n\n@Component({\n standalone: true,\n exportAs: \"Example5\",\n imports: [NgFor, TuiCarousel, TuiPagination],\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n encapsulation,\n changeDetection,\n})\nexport default class Example {\n protected index = 0;\n\n protected readonly itemsCount = 3;\n\n protected readonly items = [\n {title: 'First', content: 'First content'},\n {title: 'Title #2', content: 'Much more content here so the height is bigger'},\n {title: 'Title III', content: 'Small item again'},\n {title: 'Title four', content: 'Relatively ling content here'},\n {title: 'Fifth item', content: 'Tiny text'},\n {title: '6', content: \"That one's short too\"},\n {title: 'Lucky 7', content: 'This takes about two lines or so'},\n {title: 'Eighth card', content: 'Almost the last one'},\n {title: 'X', content: 'This is the longest item there is in this list'},\n ];\n\n protected get rounded(): number {\n return Math.floor(this.index / this.itemsCount);\n }\n\n protected onIndex(index: number): void {\n this.index = index * this.itemsCount;\n }\n}\n"}}]);