代码之家  ›  专栏  ›  技术社区  ›  SmartestVEGA

更改角度组件中的通知图标

  •  0
  • SmartestVEGA  · 技术社区  · 6 年前

    目前它显示错误、成功、警告等不同的图标…

    https://stackblitz.com/edit/angular2-notifications-example

    1 回复  |  直到 6 年前
        1
  •  1
  •   Ritwick Dey    6 年前

    angular2-notifications .

    // In NgModule, where you're importing the module.
    SimpleNotificationsModule.forRoot( {
          icons: {
            success: '<i class="icon-check-sign icon-3x"></i>',
            alert: '<i class="icon-exclamation icon-3x"></i>',
            error: '<i class="icon-bug icon-3x"></i>',
            info: '<i class="icon-info icon-3x"></i>',
            warn: '<i class="icon-warning-sign icon-3x"></i>'
          }
     })
    

    stackblitz code.

    Check out their docs for full info