Lazy loading modules
<p>Whenever I attempt to go to <code>profile</code> state I'm thrown back to the <code>home</code> state (no errors in console).</p>

<p>Here's my setup:</p>

<p><strong>app.js</strong></p>

<pre><code>angular.module('app',[
 'oclazyLoad'
 'app.components'
])
.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', '$httpProvider',
    function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
        $urlRouterProvider.otherwise('/');
        //$locationProvider.html5Mode(true);

        $httpProvider.interceptors.push('jwtInterceptor');

        function lazyLoad(pathjs) {
            return ['$ocLazyLoad', function ($ocLazyLoad) {
                return $ocLazyLoad.load(pathjs);
            }];
        }

        $stateProvider
            .state('home', {
                url: '/',
                template: 'asd'
            })
            .state('profile', {
                url: '/profile',
                templateUrl: 'components/profile/profile.html',
                controller: 'profileCtrl',
                controllerAs: 'vm',
                resolve: {
                    module: lazyLoad('components/profile/profile.js'),
                    user: ['SessionService', function (SessionService) {
                        return {fake: 'user'};//SessionService.currentUser(true);
                    }]
                }
            })
    }]);
angualar.module('app.components',[]);
</code></pre>

<p><strong>profile.js</strong></p>

<pre><code>angular.module('app.components')
 .controller('profileCtrl', ['user', function(user){
  var vm = this;
  vm.test = 123;
 }]);
</code></pre>

<p><strong>profile.html</strong></p>

<pre><code>&lt;div&gt;{{vm.test || 1}}&lt;/div&gt;
</code></pre>