Alert.js 598 Bytes
import template from "./Alert.html";
import style from "antd/lib/alert/style/index.css";
angular.module("esNgAntd").directive("antdAlert", function (esNgAntd) {
    return {
        controllerAs: "antdAlert",
        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);
        },
    };
});