'use strict';

// Setting up route
angular.module('articles').config(['$stateProvider',
  function ($stateProvider) {
    // Articles state routing
    $stateProvider
      .state('articles', {
        abstract: true,
        url: '/articles',
        template: '<ui-view/>',
        data: {
          roles: ['user', 'admin']
        }
      })
      .state('articles.list', {
        url: '',
        templateUrl: 'modules/articles/views/list-articles.client.view.html'
      })
      .state('articles.create', {
        url: '/create',
        templateUrl: 'modules/articles/views/create-article.client.view.html'
      })
      .state('articles.view', {
        url: '/:articleId',
        templateUrl: 'modules/articles/views/view-article.client.view.html'
      })
      .state('articles.edit', {
        url: '/:articleId/edit',
        templateUrl: 'modules/articles/views/edit-article.client.view.html'
      });
  }
]);

@@ -271,71 +271,9 @@
 w/%3E'
-,%0A        data: %7B%0A          roles: %5B'user', 'admin'%5D%0A        %7D
 %0A
+
     
@@ -539,32 +539,94 @@
 lient.view.html'
+,%0A        data: %7B%0A          roles: %5B'user', 'admin'%5D%0A        %7D
 %0A      %7D)%0A      
@@ -829,16 +829,16 @@
 /edit',%0A
-
         
@@ -896,32 +896,94 @@
 lient.view.html'
+,%0A        data: %7B%0A          roles: %5B'user', 'admin'%5D%0A        %7D
 %0A      %7D);%0A  %7D%0A%5D

Allow Guests to view Articles