Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame^] | 1 | window.angular && (function(angular) { |
| 2 | 'use strict'; |
Iftekharul Islam | a1d238f | 2018-02-26 12:29:45 -0600 | [diff] [blame] | 3 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame^] | 4 | angular |
| 5 | .module('app.common.directives') |
| 6 | .directive('errors', ['APIUtils', function(APIUtils) { |
| 7 | return { |
| 8 | 'restrict': 'E', |
| 9 | 'template': require('./errors.html'), |
| 10 | 'scope': { |
| 11 | 'path': '=' |
| 12 | }, |
| 13 | 'controller': ['$scope', 'dataService', function($scope, dataService) { |
| 14 | $scope.dataService = dataService; |
| 15 | }] |
| 16 | }; |
| 17 | }]); |
Iftekharul Islam | a1d238f | 2018-02-26 12:29:45 -0600 | [diff] [blame] | 18 | })(window.angular); |