clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
20 lines (15 loc) • 512 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 { InjectionToken } from '@angular/core';
let nbTabsComponent = 0;
export const TABS_ID = new InjectionToken<number>('TABS_ID');
export function tokenFactory() {
return 'clr-tabs-' + nbTabsComponent++;
}
export const TABS_ID_PROVIDER = {
provide: TABS_ID,
useFactory: tokenFactory,
};