-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
I'm not sure whether this is a bug in CLI, Angular or from a user who isn't yet up to speed on the new router component. I generated a new project using CLI and added two routes to it:
ng new test-project
ng g route firstPath
ng g route secondPath
After generating the files, the project looks like this: https://github.com/thorstenschaefer/angular-cli-issue
Now if I start the app (ng serve) and go to http://localhost:4200/firstPath or http://localhost:4200/secondPath, I'm just seeing the rendered part of the main component "test-project works!", not for the sub components. The tag is in the DOM unresolved, but the code of the main component includes the routes for the 2 path and the ROUTER_DIRECTIVES as well, so I'm not sure what's going wrong here.
There are no errors in the browser console, the only notification I get when using any CLI command is "(node:27157) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.", but it seems that it's just a warning as the code gets generated.
Environment:
angular-cli: 1.0.0-beta.1
node: 6.1.0
os: darwin x64