A router outlet is a placeholder that Angular dynamically fills based on the application's route.
Use
<router-outlet></router-outlet>
- Implements
-
- OnDestroy
- Annotations
- Directive(selector: "router-outlet")
Constructors
- RouterOutlet(ViewContainerRef _viewContainerRef, ComponentResolver _loader, Router _parentRouter, @ String nameAttr)
Properties
- activateEvents → dynamic
-
read / write
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - name → String
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
activate(
ComponentInstruction nextInstruction) → Future -
Called by the Router to instantiate a new component during the commit phase of a navigation. This method in turn is responsible for calling the
routerOnActivate
hook of its child. -
deactivate(
ComponentInstruction nextInstruction) → Future -
Called by the Router when an outlet disposes of a component's contents. This method in turn is responsible for calling the
routerOnDeactivate
hook of its child. -
ngOnDestroy(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
reuse(
ComponentInstruction nextInstruction) → Future -
Called by the Router during the commit phase of a navigation when an outlet reuses a component between different routes. This method in turn is responsible for calling the
routerOnReuse
hook of its child. -
routerCanDeactivate(
ComponentInstruction nextInstruction) → Future<bool> -
Called by the Router during recognition phase of a navigation.
-
routerCanReuse(
ComponentInstruction nextInstruction) → Future<bool> -
Called by the Router during recognition phase of a navigation.
-
toString(
) → String -
Returns a string representation of this object.
inherited