blob: 5bd1e52d8f3ed6529029050e33113956d0624a5e [file] [log] [blame]
Andrew Geisslerba5e3f32018-05-24 10:58:00 -07001window.angular && (function(angular) {
2 'use strict';
Iftekharul Islama1d238f2018-02-26 12:29:45 -06003
Andrew Geisslerd27bb132018-05-24 11:07:27 -07004 angular.module('app.common.directives').directive('errors', [
5 'APIUtils',
6 function(APIUtils) {
Andrew Geisslerba5e3f32018-05-24 10:58:00 -07007 return {
8 'restrict': 'E',
9 'template': require('./errors.html'),
Andrew Geisslerd27bb132018-05-24 11:07:27 -070010 'scope': {'path': '='},
11 'controller': [
12 '$scope', 'dataService',
13 function($scope, dataService) {
14 $scope.dataService = dataService;
15 }
16 ]
Andrew Geisslerba5e3f32018-05-24 10:58:00 -070017 };
Andrew Geisslerd27bb132018-05-24 11:07:27 -070018 }
19 ]);
Iftekharul Islama1d238f2018-02-26 12:29:45 -060020})(window.angular);