nitweb/angular: introduce entity-list directive
[nit.git] / share / nitweb / javascripts / entities.js
index 76ebcd9..e56d676 100644 (file)
                                templateUrl: '/directives/entity/card.html'
                        };
                })
+
+               .directive('entityList', function() {
+                       return {
+                               restrict: 'E',
+                               scope: {
+                                       listEntities: '=',
+                                       listTitle: '@',
+                               },
+                               templateUrl: '/directives/entity/list.html',
+                       };
+               })
 })();