fix(router): throw an error when encounter undefined route (#12389)

This commit is contained in:
Dzmitry Shylovich
2016-11-11 01:55:10 +03:00
committed by Victor Berchet
parent 3052fb234f
commit 77dc1ab675
3 changed files with 23 additions and 2 deletions

View File

@ -8,7 +8,6 @@
import {APP_BASE_HREF, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} from '@angular/common';
import {ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, ApplicationRef, Compiler, Inject, Injector, ModuleWithProviders, NgModule, NgModuleFactoryLoader, OpaqueToken, Optional, Provider, SkipSelf, SystemJsNgModuleLoader} from '@angular/core';
import {Route, Routes} from './config';
import {RouterLink, RouterLinkWithHref} from './directives/router_link';
import {RouterLinkActive} from './directives/router_link_active';