commit | bd2e5cd3b96cf0b6d56f697e11f575bb778d74ba | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@onlab.us> | Tue Apr 12 11:59:29 2016 -0700 |
committer | Matteo Scandolo <teo@onlab.us> | Tue Apr 12 11:59:29 2016 -0700 |
tree | 8789931dc647fb9b9bcb598cf58dd86ceb2bb519 | |
parent | c7987cd6ab3b59860e0244d503948f49b014ea4b [diff] |
New resource generator for REST Apis
diff --git a/views/ngXosLib/generator-xos/app/templates/src/index.html b/views/ngXosLib/generator-xos/app/templates/src/index.html index b271d11..f546c21 100644 --- a/views/ngXosLib/generator-xos/app/templates/src/index.html +++ b/views/ngXosLib/generator-xos/app/templates/src/index.html
@@ -4,7 +4,7 @@ <!-- inject:css --> <!-- endinject --> -<div ng-app="xos.<%= name %>" id="xos<%= fileName %>"> +<div ng-app="xos.<%= name %>" id="xos<%= fileName %>" class="container"> <div ui-view></div> </div>
diff --git a/views/ngXosLib/generator-xos/app/templates/src/js/main.js b/views/ngXosLib/generator-xos/app/templates/src/js/main.js index 4492f9c..9c0e259 100644 --- a/views/ngXosLib/generator-xos/app/templates/src/js/main.js +++ b/views/ngXosLib/generator-xos/app/templates/src/js/main.js
@@ -24,9 +24,9 @@ bindToController: true, controllerAs: 'vm', templateUrl: 'templates/users-list.tpl.html', - controller: function($http){ + controller: function(Users){ // retrieving user list - $http.get('/api/core/users') + Users.query().$promise .then((users) => { this.users = users; })