nitweb/angular: load mentity definitions for classes and properties
[nit.git] / share / nitweb / javascripts / entities.js
index e5b6407..9eefc9f 100644 (file)
                                        });
                        };
 
+                       this.loadEntityDefs = function() {
+                               Model.loadEntityDefs($routeParams.id,
+                                       function(data) {
+                                               $scope.defs = data;
+                                       }, function(err) {
+                                               $scope.error = err;
+                                       });
+                       };
+
                        this.loadEntityCode = function() {
                                Model.loadEntityCode($routeParams.id,
                                        function(data) {