Overriding controller in partail page angularjs

8 views
Skip to first unread message

MGT711792

unread,
Jul 10, 2018, 1:59:14 AM7/10/18
to Angular and AngularJS discussion
I have a common Layout page where i am calling the _header partial page and then rendering body. In render body, i have several index pages which has its own ng-controller. When i create ng-controller for _header partial, i am not able to get those scope values rather i am getting {{header.label}} in the body part.

How to have separate module and controller for partial page and for body. I think, ng-app and ng-controller is what making some issue. Any help is appreciated. TIA.

Mike Ciote

unread,
Jul 10, 2018, 9:23:45 AM7/10/18
to ang...@googlegroups.com
please specify an Angular version in the title

On Tue, Jul 10, 2018 at 1:59 AM, MGT711792 <suganya.k...@nielsen.com> wrote:
I have a common Layout page where i am calling the _header partial page and then rendering body. In render body, i have several index pages which has its own ng-controller. When i create ng-controller for _header partial, i am not able to get those scope values rather i am getting {{header.label}} in the body part.

How to have separate module and controller for partial page and for body. I think, ng-app and ng-controller is what making some issue. Any help is appreciated. TIA.

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

Reply all
Reply to author
Forward
0 new messages