Route Generator Not working
Anytime I try and use the yo angular-fullstack:route routeName command, all of the necessary files are generated, hoever when I try and connect to localhost:9000/routeName I get redirected to the home page. I have updated the generator and npm and saw no difference. Any help would be appreciated.
Check that the new JavaScript files have been injected into the index.html file. You should see something like:
<script src="app/routeName/routeName.controller.js"></script>
<script src="app/routeName/routeName.js"></script>
If you don't see these files, then run "grunt injector".
Thanks, that fixed it!
Yeah that's actually a bug that I've noticed before too. The subgenerators should also inject the new files into index.html.
I'd say that is more of an issue with grunt-contrib-watch than generator-ng-component. The injector task should fire off when new js files are created, but sometimes its doesn't...
Upon looking into this issue, I noticed that the generator is generating .js files - not .ts files. Should be generating files based on the options selected in the configuration wizard.
Upon renaming the files to .ts and running grunt injector, the scripts were injected into the application.
The only other this was that after the scripts were injected, I had to restart the grunt serve task so the files were available in the .tmp folder to preview the app.
@cgranville you can track that issue here: https://github.com/DaftMonk/generator-ng-component/issues/27