clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
23 lines (19 loc) • 616 B
text/typescript
/*
* Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { Directive, Input, Optional, TrackByFunction } from '@angular/core';
import { Items } from './providers/items';
({
selector: '[ngForTrackBy]',
})
export class ClrDatagridItemsTrackBy {
constructor(() private _items: Items) {}
('ngForTrackBy')
set trackBy(value: TrackByFunction<Function>) {
if (this._items) {
this._items.trackBy = value;
}
}
}