($rootScope, ngDialog)
| 13 | exampleDirective.$inject = ['$rootScope', 'ngDialog']; |
| 14 | |
| 15 | function exampleDirective($rootScope, ngDialog) { |
| 16 | return { |
| 17 | restrict: 'A', |
| 18 | link: function(scope, element, attrs) { |
| 19 | element.on('click', function() { |
| 20 | scope.$dialog = ngDialog.open({ |
| 21 | template: '<button class="icon icon--close" data-ng-click="closeThisDialog()">close dialog</button> test', |
| 22 | plain: true, |
| 23 | controller: 'InsideDirective', |
| 24 | className: 'inside-directive-plain', |
| 25 | name: 'inside-directive-plain', |
| 26 | showclose: false |
| 27 | }); |
| 28 | }); |
| 29 | |
| 30 | } |
| 31 | }; |
| 32 | }; |
| 33 | |
| 34 | })(); |
nothing calls this directly
no outgoing calls
no test coverage detected