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 have 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 the body. I think ng-app
and ng-controller
is what made some issue. Any help is appreciated.
This is inside my tag
<div>
@Html.Partial("_Header")
</div>
@RenderBody()