mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(angular): module exports
This commit is contained in:
14
angular/src/directives/virtual-scroll/virtual-utils.ts
Normal file
14
angular/src/directives/virtual-scroll/virtual-utils.ts
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
export class VirtualContext {
|
||||
|
||||
constructor(public $implicit: any, public index: number, public count: number) { }
|
||||
|
||||
get first(): boolean { return this.index === 0; }
|
||||
|
||||
get last(): boolean { return this.index === this.count - 1; }
|
||||
|
||||
get even(): boolean { return this.index % 2 === 0; }
|
||||
|
||||
get odd(): boolean { return !this.even; }
|
||||
|
||||
}
|
Reference in New Issue
Block a user