Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module yql {
- 'use strict';
- export class Accueil {
- static $inject = ['$rootScope', 'Restangular', Accueil.directiveFactory];
- static directiveFactory($rootScope: any, Restangular: restangular.IService): ng.IDirective {
- return {
- templateUrl: 'app/directives/accueil/Accueil.html',
- replace: true,
- bindToController: true,
- controllerAs: 'accDir',
- controller: function() {
- this.Folders = Restangular.one('Manager/Folders/Threshold').get({firm: $rootScope.currentUser.Firm}).$object;
- this.Applications = Restangular.all('Manager/Applications/Threshold').getList({firm: $rootScope.currentUser.Firm}).$object;
- }
- };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement