Hi All,

we are planning to develop new large application using Angular js. For that 
we are preparing the POC for angular js. we build basic landing page . It;s 
working fine

When clicking the contact us link need to dynamically load the contact us 
page. HTML page is loading properly and controller register we are getting 
error.


Error: [ng:areq] Argument 'ContactusCtrl' is not a function, got undefined
http://errors.angularjs.org/1.3.5/ng/areq?p0=ContactusCtrl&p1=not%20a%20function%2C%20got%20undefined
   at assertArg (http://localhost:53856/Scripts/vendors/angular.js:1560:5)
   at assertArgFn (http://localhost:53856/Scripts/vendors/angular.js:1570:3)
   at Anonymous function 
(http://localhost:53856/Scripts/vendors/angular.js:8353:9)
   at Anonymous function 
(http://localhost:53856/Scripts/vendors/angular-ui-router/angular-ui-router.js:2797:11)
   at invokeLinkFn 
(http://localhost:53856/Scripts/vendors/angular.js:8141:9)
   at nodeLinkFn (http://localhost:53856/Scripts/vendors/angular.js:7653:11)
   at compositeLinkFn 
(http://localhost:53856/Scripts/vendors/angular.js:7009:13)
   at publicLinkFn 
(http://localhost:53856/Scripts/vendors/angular.js:6888:30)
   at updateView 
(http://localhost:53856/Scripts/vendors/angular-ui-router/angular-ui-router.js:2733:11)
   at Anonymous function 
(http://localhost:53856/Scripts/vendors/angular-ui-r


Can any one help us to reslove the issue ?

Model.js:

angular.module('homeless.contactus', []);

contactusctrl.js:

ngular.module('homeless.contactus').controller('ContactusCtrl', ['$scope', 
'$stateParams', '$location', 'Global',
    function ($scope, $stateParams, $location, Global) {
        debugger;
        $scope.global = Global;

    }]);
routes.js:

angular.module('homeless.contactus').config(['$stateProvider',
    function ($stateProvider) {
        debugger;
        // states for my app

    }]);
Thanks & Regards,
Sajan Soosaimichael.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to