ngView is a directive that complements the $route service by including the rendered template of the current route into the main layout (index.html) file. Every time the current route changes, the included view changes with it according to the configuration of the $route service.
Overview
ngView is a directive that complements the $route
service by including the rendered template of the current route into the main layout (index.html) file. Every time the current route changes, the included view changes with it according to the configuration of the $route
service.
Directive Info
- This directive creates new scope.
- This directive executes at priority level 400.
Usage
as element: (This directive can be used as custom element, but be aware of IE restrictions).
<ng-view
[onload=""]
[autoscroll=""]>
...
</ng-view>
as attribute:
<ANY
[onload=""]
[autoscroll=""]>
...
</ANY>
as CSS class:
<ANY class="[onload: ;] [autoscroll: ;]"> ... </ANY>