feat(router): lifecycle hooks

Closes #2640
This commit is contained in:
Brian Ford
2015-07-07 15:44:29 -07:00
parent f5f85bb528
commit a9a552c112
12 changed files with 823 additions and 106 deletions

View File

@ -126,7 +126,11 @@ export class RouteRegistry {
this.configFromComponent(componentType);
if (partialMatch.unmatchedUrl.length == 0) {
return new Instruction(componentType, partialMatch.matchedUrl, recognizer);
if (recognizer.terminal) {
return new Instruction(componentType, partialMatch.matchedUrl, recognizer);
} else {
return null;
}
}
return this.recognize(partialMatch.unmatchedUrl, componentType)