clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
25 lines (22 loc) • 880 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 { Component } from '@angular/core';
import { AlertIconAndTypesService } from './providers/icon-and-types.service';
({
// the .alert-item selector is deprecated; the :not clause is to allow us to use static
// examples in demos on the demo-app and website
selector: '.alert-item:not(.static), clr-alert-item',
template: `
<div class="alert-icon-wrapper">
<clr-icon class="alert-icon" [attr.shape]="iconService.alertIconShape"></clr-icon>
</div>
<ng-content></ng-content>
`,
host: { class: 'alert-item' },
})
export class ClrAlertItem {
constructor(public iconService: AlertIconAndTypesService) {}
}