报错信息:
Error: Invalid configuration of route '{path: "", redirectTo: "session/signin"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.
at validateNode (router.js:672)
at validateConfig (router.js:628)
at validateNode (router.js:678)
at validateConfig (router.js:628)
at Router.resetConfig (router.js:4904)
at new Router (router.js:4765)
at setupRouter (router.js:7283)
at _callFactory (core.js:10926)
at _createProviderInstance$1 (core.js:10868)
at initNgModule (core.js:10818)
解决办法:
增加pathMatch属性:pathMatch: 'prefix'