p.location-badge.
exported from angular2/router
defined in angular2/src/router/instruction.ts (line 76)
:markdown
A `ComponentInstruction` represents the route state for a single component. An `Instruction` is
composed of a tree of these `ComponentInstruction`s.
`ComponentInstructions` is a public API. Instances of `ComponentInstruction` are passed
to route lifecycle hooks, like CanActivate
.
`ComponentInstruction`s are [https://en.wikipedia.org/wiki/Hash_consing](hash consed). You should
never construct one yourself with "new." Instead, rely on PathRecognizer to
construct
`ComponentInstruction`s.
You should not modify this object. It should be treated as immutable.
.l-main-section
h2 Members
.l-sub-section
h3#reuse reuse
:markdown
.l-sub-section
h3#urlPath urlPath
:markdown
.l-sub-section
h3#urlParams urlParams
:markdown
.l-sub-section
h3#params params
:markdown
.l-sub-section
h3#componentType componentType
:markdown
.l-sub-section
h3#resolveComponentType resolveComponentType
pre.prettyprint
code.
resolveComponentType()
:markdown
.l-sub-section
h3#specificity specificity
:markdown
.l-sub-section
h3#terminal terminal
:markdown
.l-sub-section
h3#routeData routeData
pre.prettyprint
code.
routeData()
:markdown