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

Version Path
aleph_analytics-0.4.9.pre.dev public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.9.pre.dev app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.4.8 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.8 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.4.7 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.4.7 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.4 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.4 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.4.2 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.2 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.4.1 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.4.1 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.3.0 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.3.0 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.2.0 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.2.0 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.1.0 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.1.0 app/assets/javascripts/angular/services/lib/role_model.js.es6
aleph_analytics-0.0.6 public/assets/angular/services/lib/role_model.js-3d5072f279676294e7d17cbb4bb3adb5.es6
aleph_analytics-0.0.6 app/assets/javascripts/angular/services/lib/role_model.js.es6