首先需要项目引入 angualr meterial icons的资源库
图标资源链接
https://klarsys.github.io/angular-material-icons/
<md-button class="md-icon-button" ng-click="upDialogAndSaveFilter()" ng-disabled="fullQuery===undefined" auto-id="automation_button_saveFilter" > <!--<span translate="nvsAlarmWebWidget.filter.saveFilter">Save Filter</span>--> <md-icon class="ng-scope material-icons" role="img" aria-hidden="true"> <i class="material-icons">save</i> //save 为图标的名称 </md-icon> <md-tooltip><span translate="nvsAlarmWebWidget.filter.saveFilter"></span></md-tooltip> //鼠标悬浮时文字提示 </md-button>
来源:https://www.cnblogs.com/RonnieQin/p/9303495.html