You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When new routes are generated using "yo angular-ui-router:route myroute" the new states are generated above '$stateProvider' in the app.js Angular module.
This causes the following error:
"Uncaught Error: No module: myappnameApp"
The text was updated successfully, but these errors were encountered:
The fix works for javascript, not for coffee indeed.
It uses a different needle just below the last .state in the template. Even it reads as a comment for the following line the indentation is kept as the previous lines so new state added keeps the right indentation.
You can make it work in your installed code adding the line
// ui-otherwise
just below your last state and patching your local generator (in my Mac is /usr/local/lib/node_modules/generator-angular-ui-router. Please note the indentation!
When new routes are generated using "yo angular-ui-router:route myroute" the new states are generated above '$stateProvider' in the app.js Angular module.
This causes the following error:
"Uncaught Error: No module: myappnameApp"
The text was updated successfully, but these errors were encountered: