AngularJs LoginController not found

90 views Asked by At

I am getting this strange error :

Error: The controller function for LoginController could not be found. Is the function registered under that name?

Here is my login controller code :

define(
    [
        'app',
    ], function (app) {

        var LoginController = function ($rootScope,$scope,AuthFactory,$location) {

            $scope.login = function(data) {

            }

        };

        LoginController.$inject = ['$rootScope','$scope','AuthFactory', '$location'];
        app.register.controller('LoginController', LoginController);
    });

The same code is working fine on Chromium browser, but not on Chrome and firefox. In the console I see that there is some kind of hint.js being called on top of my application. I am not sure from where is this hint.js file coming from.

Google Chrome Version - Version 39.0.2171.95 (64-bit), Firefox Version - 34.0

Update :

After some googling i found Chrome extension hint.js & ngHintModules which helped me to solve my problem.

My next concern is what if we develop our application and there is AngularJs Batarang enabled on the users system??

0

There are 0 answers