diff --git a/build/Divider/Divider.js b/build/Divider/Divider.js index 867b77c..6d8ab22 100644 --- a/build/Divider/Divider.js +++ b/build/Divider/Divider.js @@ -1,14 +1,13 @@ -import template from "./Divider.html"; import style from "antd/lib/divider/style/index.css"; -angular.module("esNgAntd").directive("antdDivider", function (esNgAntd) { - return { - controllerAs: "antdDivider", - restrict: "E", - transclude: true, - replace: true, - template: template, - link: function ($scope, $element, $attrs, $controllers, $transclude) { - esNgAntd.createStyle("ant-divider", style); - }, - }; -}); +import template from "./Divider.html"; +angular.module("esNgAntd").directive("antdDivider", ["esNgAntd", function (esNgAntd) { + return { + template: template, + restrict: "E", + replace: true, + transclude: true, + link: function ($scope) { + esNgAntd.createStyle("ant-divider", style); + } + }; +}]); \ No newline at end of file diff --git a/example/divider.html b/example/divider.html index 4d67367..3d00765 100644 --- a/example/divider.html +++ b/example/divider.html @@ -12,7 +12,7 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.