%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/public/scripts/routes/
Upload File :
Create Path :
Current File : /var/www/html/news/public/scripts/routes/profile.routes.js

'use strict';

angular.module('profile.routes', []).config(function ($stateProvider) {
    $stateProvider
        .state('profile', {
            url: '/profile',
            templateUrl: 'views/profile/index.html',
            controller: 'profileController',
            pageTitle: 'Profile',
            resolve: {
                user: function (resource, auth) {
                    return resource.forResource('users').get(auth.getUserId(), 'roles').then(function (res) {
                        return res;
                    });
                }
            }
        });
});

Zerion Mini Shell 1.0