Advertisement
villers

Untitled

May 11th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module yql {
  2.   'use strict';
  3.  
  4.   export class Accueil {
  5.     static $inject = ['$rootScope', 'Restangular', Accueil.directiveFactory];
  6.     static directiveFactory($rootScope: any, Restangular: restangular.IService): ng.IDirective {
  7.       return {
  8.         templateUrl: 'app/directives/accueil/Accueil.html',
  9.         replace: true,
  10.         bindToController: true,
  11.         controllerAs: 'accDir',
  12.         controller: function() {
  13.           this.Folders = Restangular.one('Manager/Folders/Threshold').get({firm: $rootScope.currentUser.Firm}).$object;
  14.           this.Applications = Restangular.all('Manager/Applications/Threshold').getList({firm: $rootScope.currentUser.Firm}).$object;
  15.         }
  16.       };
  17.     }
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement