/**
 * Created by Raphson on 2/25/16.
 */
angular.module('blogger.admin', []).config(['$stateProvider', function($stateProvider){
    $stateProvider.state('admin',{
        url: '/admin',
        controller: 'AdminController',
        templateUrl: ''
    })
}]);
/**
 * Created by Raphson on 2/25/16.
 */
angular.module('blogger.admin', []).config(['$stateProvider', function($stateProvider){
    $stateProvider.state('admin',{
        url: '/admin',
        abstract: true,
        controller: 'AdminController',
        templateUrl: 'modules/admin/views/admin-home.html'
    });
    $stateProvider.state('admin.postNew', {
        url: '/posts/new',
        controller: 'postCreationController',
        templateUrl: 'modules/admin/views/admin-new-post.html'
    });
    $stateProvider.state('admin.postUpdate', {
        url: '/posts/:id/edit',
        controller: 'postUpdateController',
        templateUrl: 'modules/admin/views/admin-update-post.html'
    });
    $stateProvider.state('admin.postViewAll', {
        url: '',
        controller: 'postListController',
        templateUrl: 'modules/admin/views/admin-all-posts.html'
    });

}]);
Add Route Config to admin
Add Route Config to admin
