Blame view

src/js/directives/settingsDisplay/directive.js 489 Bytes
3ef35c23   Sean Wills   Commented feature...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(function (angular) {
    var app = angular.module('batmanDelivers');
    app.directive("settings", settings);
    settings.$inject = ['$compile']

    function settings($compile) {
        return {
            restrict: 'A',
            link: function (scope, ele, attrs) {
                scope.$watch(attrs.settings, function(html) {
                    ele.html(html);
                    $compile(ele.contents())(scope);
                });
            }
        };
    }
93483f6d   Sean Wills   Settings Working,...
17
})(angular)