Blame view

build/Alert/Alert.js 594 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  import template from "./Alert.html";
  import style from "antd/lib/alert/style/index.css";
  angular.module("esNgAntd").directive("esAlert", function (esNgAntd) {
      return {
          controllerAs: "esAlert",
          restrict: "E",
          transclude: true,
          replace: true,
          scope: {
              type: "@",
              message: "@",
              showIcon: "@",
              description: "@",
          },
          template: template,
          link: function ($scope, $element, $attrs, $controllers, $transclude) {
              esNgAntd.createStyle("ant-alert", style);
          },
      };
  });