export class Instruction
export class Instruction
exported from angular2/router defined in angular2/src/router/instruction.ts (line 79)
Instruction
is a tree of ComponentInstruction
s with all the information needed
to transition each component in the app to a given route, including all auxiliary routes.
Instruction
s can be created using Router
, and can be used to
perform route changes with Router
.
Example
Members
component : ComponentInstruction
component : ComponentInstruction
Not Yet Documented
child : Instruction
child : Instruction
Not Yet Documented
auxInstruction : {[key: string]: Instruction}
auxInstruction : {[key: string]: Instruction}
Not Yet Documented
urlPath : string
urlPath : string
Not Yet Documented
urlParams : string[]
urlParams : string[]
Not Yet Documented
specificity : string
specificity : string
Not Yet Documented
resolveComponent() : Promise<ComponentInstruction>
resolveComponent() : Promise<ComponentInstruction>
Not Yet Documented
toRootUrl() : string
toRootUrl() : string
converts the instruction into a URL string
toUrlQuery() : string
toUrlQuery() : string
Not Yet Documented
replaceChild(child: Instruction) : Instruction
replaceChild(child: Instruction) : Instruction
Returns a new instruction that shares the state of the existing instruction, but with
the given child Instruction
replacing the existing child.
toUrlPath() : string
toUrlPath() : string
If the final URL for the instruction is ``
toLinkUrl() : string
toLinkUrl() : string
Not Yet Documented