nitweb/angular: introduce entity-doc directive
[nit.git] / share / nitweb / javascripts / entities.js
index a2854aa..c55da8f 100644 (file)
                                templateUrl: '/directives/entity/link.html'
                        };
                })
+
+               .directive('entityDoc', function() {
+                       return {
+                               restrict: 'E',
+                               scope: {
+                                       mentity: '='
+                               },
+                               templateUrl: '/directives/entity/doc.html'
+                       };
+               })
 })();