I’m learning AngularJS and one of the assignments reads like this:
Now, add a new
divtag to our
index.htmlwith an attribute directive that
will include the rendered template for the current route.
That is, I need to put something inside the following
div, which will render the correct (according to routes) template.
<div class="main-wrapper"> </div>
In all examples that I could find, this task is solved by putting
<ng-view/> into the HTML code.
But this answer is wrong.
How else can I implement it (render the template, which corresponds to the current route) ?