Sha256: 5d1b931ccb4e96bc8ac49f7e591e1f120a1af7320c4d7dd46730ccec51963cf9
Contents?: true
Size: 459 Bytes
Versions: 32
Compression:
Stored size: 459 Bytes
Contents
!(angular => { 'use strict'; class RoleModel { constructor($resource) { this.collection = []; this._resource = $resource('/roles.json'); } initCollection() { return this._resource.query().$promise.then((roles) => { this.collection = roles; return roles; }); } } RoleModel.$inject = ['$resource']; angular.module('alephServices.roleModel', []).service('RoleModel', RoleModel); }(angular));
Version data entries
32 entries across 16 versions & 1 rubygems