(function() {
    'use strict';

    angular.module('sideNavDirective', ['brandHeaderDirective'])
        .directive('sideNav', function() {
            return {
                restrict: 'E',
                replace: true,
                templateUrl: 'components/UI/side-nav.html',
                controller: 'NavCtrl'
            };
        })
        .controller('NavCtrl', ['$scope', '$location',
            function($scope, $location) {
                // Items to show in the side navigation.
                // Object with a title and route property. If no route
                // is provided the lowercase'd title will be used
                $scope.navItems = [{
                    title: 'Dashboard',
                    route: 'dashboard',
                    icon: 'dashboard',
                }, {
                    title: 'Users',
                    icon: 'users',
                    route: 'users',
                    subitems: [{
                        title: 'All',
                        route: ''
                    }, {
                        title: 'New',
                        route: '/new'
                    }]
                }, {
                    title: 'Accounts',
                    icon: 'money',
                    route: 'accounts',
                    subitems: [{
                        title: 'All',
                        route: ''
                    }]
                }, {
                    title: 'Transactions',
                    icon: 'exchange',
                    route: 'transactions',
                    subitems: [{
                        title: 'All',
                        route: ''
                    }]
                }];
                // Used to set the active class on the nav li elements
                $scope.isActive = function(route) {
                    return route === $location.path();
                };
            }
        ]);

})();
@@ -1281,137 +1281,8 @@
 nts'
-,%0A                    subitems: %5B%7B%0A                        title: 'All',%0A                        route: ''%0A                    %7D%5D
 %0A   
@@ -1425,137 +1425,8 @@
 ons'
-,%0A                    subitems: %5B%7B%0A                        title: 'All',%0A                        route: ''%0A                    %7D%5D
 %0A   

remove account and transaction sub items