0
I have the following question: I am building a page, where I have a controller called PageController
, responsible for rendering the menu and page title.
However, within the div
where I use ng-controller="PageController"
, need to define where the page will be rendered - I am using the angular-route
. So, theoretically, I would have one controller inside the other.
So I have something similar to this structure:
<div ng-controller='PageController'>
<h1 ng-bind="title"></h1>
<ul>
<li ng-repeat="url in urls"></li>
</ul>
<!-- aqui o angular vai executar outro controller, por causa do $routeProvider -->
<div ng-view></div>
</div>
My question is:
This departs from the standards recommended by Angularjs?
This may cause some problem?
What is the problem with the question? because the negative? could indicate so I can improve the details?
– Wallace Maxters