ngView
ngRoute
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.
Requires the ngRoute module to be installed.
This directive can be used as custom element, but be aware of IE restrictions.
as element:<ng-view
[onload="{string}"]
[autoscroll="{string}"]>
</ng-view>
as attribute<ANY ng-view
[onload="{string}"]
[autoscroll="{string}"]>
...
</ANY>
as class<ANY class="ng-view [onload: {string};] [autoscroll: {string};]">
...
</ANY>
| Param | Type | Details |
|---|---|---|
| onload (optional) | string | Expression to evaluate whenever the view updates. |
| autoscroll (optional) | string | Whether
|
Emitted every time the ngView content is reloaded.