Przeglądaj źródła

Add restrict to directives

Lily Carpenter 10 lat temu
rodzic
commit
befa6d06d6
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 2 1
      www/js/directives/note.js
  2. 2 1
      www/js/directives/note_form.js

+ 2 - 1
www/js/directives/note.js

@@ -2,7 +2,8 @@
2 2
   angular.module('bootcampApp')
3 3
     .directive('note', function(){
4 4
       return {
5
-        templateUrl: 'partials/note.html'
5
+        templateUrl: 'partials/note.html',
6
+        restrict: 'E'
6 7
       };
7 8
     });
8 9
 })();

+ 2 - 1
www/js/directives/note_form.js

@@ -2,7 +2,8 @@
2 2
   angular.module('bootcampApp')
3 3
     .directive('noteForm', function(){
4 4
       return {
5
-        templateUrl: 'partials/note_form.html'
5
+        templateUrl: 'partials/note_form.html',
6
+        restrict: 'E'
6 7
       };
7 8
     });
8 9
 })();