Angular 2 routing redirect to with child routes
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am a newbie in Angular 2. I want to create isolated modules for every part of my app. For example I created the AuthModule with default component - AuthComponent which contain a router outlet for his child components (SignIn or SignUp). So I want to realize the following scenario: When navigate to / - root off app - redirect to /auth After redirect to /auth - load AuthComponent with router outlet After AppComponent loaded - load default sign-in component via redirecting to /auth/sign-in But when I going to localhost/ I get redirect to