define('main', [], function() {
    requirejs.config({
        paths: {
            'angular': '../bower_components/angular/angular',
            'angular-resource': '../bower_components/angular-resource/angular-resource',<% if (includeAngularAnimate) { %>
            'angular-animate': '../bower_components/angular-animate/angular-animate', <% } %>
            'angular-ui-route': '../bower_components/angular-ui-router/release/angular-ui-router',<% if (includeBindonce) { %>
            'bindonce': '../bower_components/angular-bindonce/bindonce',<% } %><% if (includeUIBootstrap) { %>
            'ui-bootstrap-tpls': '../bower_components/angular-bootstrap/ui-bootstrap-tpls',<% }%><% if (includeModernizr) { %>
            'modernizr': '../bower_components/modernizr/modernizr',<% } %>
            'jquery': '../bower_components/jquery/dist/jquery',<% if (includeUnderscore) { %>
            'underscore': '../bower_components/underscore/underscore',<% } %><% if (cssFramework === 'SASSBootstrap') { %>
            'bootstrap': '../bower_components/sass-bootstrap/dist/js/bootstrap',<% } %>
            'controllers': 'controllers/controllers',
            'directives': 'directives/directives',
            'filters': 'filters/filters',
            'services': 'services/services'
        },
        shim: {
            'angular': {
                exports: 'angular',
                deps: ['jquery']
            },<% if (includeUnderscore) { %>
            'underscore': {
                exports: '_'
            }, <% } %>
            'angular-resource': ['angular'],<% if (includeAngularAnimate) { %>
            'angular-animate': ['angular'],<% } %>
            'angular-ui-route': ['angular'],<% if (includeBindonce) { %>
            'bindonce': ['angular'], <% } %><% if (includeUIBootstrap) { %>
            'ui-bootstrap-tpls': ['angular'],<% } %><% if (cssFramework === 'SASSBootstrap') { %>
            'bootstrap': ['jquery'],<% } %>
            'controllers': ['angular', 'services'],
            'filters': ['angular'],
            'services': ['angular'],
            'directives': ['angular']
        }
    });

    Window.name = 'NG_DEFER_BOOTSTRAP!';

    requirejs([
        'angular',
        'jquery',
        'angular-resource',<% if (includeAngularAnimate) { %>
        'angular-animate', <% } %>
        'angular-ui-route',<% if (includeBindonce) { %>
        'bindonce',<% } %><% if (includeUIBootstrap) { %>
        'ui-bootstrap-tpls',<% } %><% if (includeUnderscore) { %>
        'underscore',<% } %><% if (cssFramework === 'SASSBootstrap') { %>
        'bootstrap',<% } %><% if (includeModernizr) { %>
        'modernizr',<% } %>
        'services',
        'filters',
        'directives',
        'controllers'
    ], function(angular) {
        'use strict';

        /* App Module */
        angular.element(document).ready(function () {
            // smart works go here
            var $html = angular.element('html');
            angular.module('webApp', [
                'ui.router',
                'ngResource',<% if (includeUIBootstrap) { %>
                'ui.bootstrap',<% } %><% if (includeAngularAnimate) { %>
                'ngAnimate', <% } %><% if (includeBindonce) { %>
                'pasvaz.bindonce',<% } %>
                'webControllers',
                'webFilters',
                'webServices',
                'webDirectives'
            ]).config(['$stateProvider', '$urlRouterProvider', '$interpolateProvider', '$provide', 
                function($stateProvider, $urlRouterProvider, $interpolateProvider, $provide) {
                    $stateProvider
                        .state('home', {
                            url: '/',
                            templateUrl: 'partials/home-page.html',
                            controller: 'HomePageController'
                        });

                    $urlRouterProvider.otherwise('/');
                    /* change configure to use [[ to be the interpolation */
                    $interpolateProvider.startSymbol('[[');
                    $interpolateProvider.endSymbol(']]');
                    /* add safeApply function for $rootScope - called by $scope.$root.safeApply(fn) */
                    $provide.decorator('$rootScope', [
                        '$delegate',
                        function($delegate) {
                            $delegate.safeApply = function(fn) {
                                var phase = $delegate.$$phase;
                                if (phase === "$apply" || phase === "$digest") {
                                    if (fn && typeof fn === 'function') {
                                        fn();
                                    }
                                } else {
                                    $delegate.$apply(fn);
                                }
                            };
                            return $delegate;
                        }
                    ]);
                }
            ]);
            // bootstrap model
            angular.bootstrap($html, ['webApp']);
        });
    });
});

@@ -373,16 +373,17 @@
 ui-route
+r
 ': '../b
@@ -1686,16 +1686,17 @@
 ui-route
+r
 ': %5B'ang
@@ -2348,16 +2348,17 @@
 ui-route
+r
 ',%3C%25 if 

Edit template for angular ui router