我想在我的Angular2应用程序中使用Bootstrap图标。我已经使用命令npm install bootstrap --save安装了Bootstrap。
我的代码片段如下:
<button *ngIf="pos.name == uname" type="button" class="btn btn-default btn-sm delete" (click)="DeleteBulletin();">
<span class="glyphicon glyphicon-trash glyph"></span> Delete
</button>
我已将Bootstrap包含在我的styleUrls中 - styleUrls:['node_modules/bootstrap/dist/css/bootstrap.min.css','app/home.component.css']