Blame view

build/Divider/Divider.js 470 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  import template from "./Divider.html";
  import style from "antd/lib/divider/style/index.css";
  angular.module("esNgAntd").directive("esDivider", function (esNgAntd) {
      return {
          controllerAs: "esDivider",
          restrict: "E",
          transclude: true,
          replace: true,
          template: template,
          link: function ($scope, $element, $attrs, $controllers, $transclude) {
              esNgAntd.createStyle("ant-divider", style);
          },
      };
  });