@hicoder/angular-cli
Version:
Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res
17 lines • 681 B
HTML
<div class="alerts">
<ng-template ngFor let-detail [ngForOf]="list" let-i="index">
<div *ngIf="!detail.mddsHideAlert" class="alert" [ngClass]="
{'bg-primary': detail[fields.color] == 'blue' || !detail[fields.color], 'bg-danger': detail[fields.color] == 'red',
'bg-success': detail[fields.color] == 'green', 'bg-warning': detail[fields.color] == 'yellow'}">
<span (click)="hideAlert(i)" class="closebtn">×</span>
<div>
<strong>
{{detail[fields.description]}}
</strong>
<a class="alertLink ms-2" href="{{detail[fields.linkURL]}}">
{{detail[fields.linkDisplay] || detail[fields.linkURL]}}
</a>
</div>
</div>
</ng-template>
</div>