missed the URL. http://plnkr.co/edit/xmcWrJfe6QMdaQrMjpjq?p=preview

On Wednesday, December 10, 2014 1:19:59 AM UTC+5:30, woodson wrote:
>
> Thanks Eric,
>
> i created the sample application. But it's not working properly.But u can 
> understand my issue i hope :).
>
> 1) on  clicking the Contact us like we have to load the contactus.html 
> page with controller route,module.
>
> please let me know if required more details.
>
> -woodson
>  
>
> On Wednesday, December 10, 2014 12:33:52 AM UTC+5:30, Eric Eslinger wrote:
>>
>> It would be pretty good if you provided a plunker 
>> <http://www.google.com/url?q=http%3A%2F%2Fplnkr.co%2F&sa=D&sntz=1&usg=AFQjCNE0-NbnrUuIl5HxKn1d1rYMLeJJ0g>
>>  
>> example of your failing code. Based on what you've shared, that's 
>> more-or-less stuff that should work (to my eyes at least).
>>
>> Are the different files being loaded in the proper order (either via 
>> concatenation or their direct declaration order in index.html)?
>>
>> Are there any odd capitalization errors caused by Contactus being 
>> sometimes spelled ContactUs happening elsewhere?
>>
>> Are you declaring states in one module and controllers elsewhere? Doesn't 
>> look like it in your example code, but that causes problems for me at times.
>>
>> I'd look at the file inclusion order first.
>>
>> Eric
>>
>>
>> On Tue Dec 09 2014 at 10:53:38 AM woodson <[email protected]> wrote:
>>
>>> 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,
>>> woodson
>>>
>>> -- 
>>> 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.
>>>
>>
> On Wednesday, December 10, 2014 12:33:52 AM UTC+5:30, Eric Eslinger wrote:
>>
>> It would be pretty good if you provided a plunker <http://plnkr.co/> 
>> example of your failing code. Based on what you've shared, that's 
>> more-or-less stuff that should work (to my eyes at least).
>>
>> Are the different files being loaded in the proper order (either via 
>> concatenation or their direct declaration order in index.html)?
>>
>> Are there any odd capitalization errors caused by Contactus being 
>> sometimes spelled ContactUs happening elsewhere?
>>
>> Are you declaring states in one module and controllers elsewhere? Doesn't 
>> look like it in your example code, but that causes problems for me at times.
>>
>> I'd look at the file inclusion order first.
>>
>> Eric
>>
>>
>> On Tue Dec 09 2014 at 10:53:38 AM woodson <[email protected]> wrote:
>>
>>> 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,
>>> woodson
>>>
>>> -- 
>>> 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.
>>>
>>

-- 
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