/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

(function () {
    'use strict';
    angular
            .module('codeigniterIdApp')
            .config(function ($stateProvider, $urlRouterProvider) {

                // Redirect to home
                $urlRouterProvider.otherwise('/home');

                $stateProvider
                        .state('categories', {
                            url: '/categories',
                            templateUrl: 'app/categories/categories.html'
                        });


                $stateProvider.state('projects', {
                    url: '/projects',
                    controller: 'ProjectsController',
                    views: {
                        main: {
                            templateUrl: 'app/projects/projects.html'
                        }
                    }
                });

                $stateProvider.state('home', {
                    url: '/home',
                    controller: 'HomeController',
                    views: {
                        main: {
                            templateUrl: 'app/home/home.html'
                        }
                    }
                });

                $stateProvider.state('rules', {
                    url: '/rules',
                    controller: 'RulesController',
                    views: {
                        main: {
                            templateUrl: 'app/rules/rules.html'
                        }
                    }
                });

                $stateProvider.state('article', {
                    url: '/article',
                    controller: 'ArticleController',
                    views: {
                        main: {
                            templateUrl: 'app/article/article.html'
                        }
                    }
                });
            });
})();

@@ -1959,32 +1959,358 @@
               %7D%0A
+                %7D).state('article.detail', %7B%0A                    url: '/article-detail',%0A                    controller: 'ArticleController',%0A                    views: %7B%0A                        main: %7B%0A                            templateUrl: 'app/article/article.detail.html'%0A                        %7D%0A                    %7D%0A
                 

update routes