Hello,
When running gulp dist, the resulting dist/my-app.min.js just doesn't run as expected.
I'm using ui-router. When debugging inside my app's .config(), I see dependencies (including $stateProvider) are injected correctly.
But when it comes to states I've declared, they're never triggered. I tried debugging inside each state's controller, but that simply never happens (while trying to access appropriate routes of course).
In the end, the final rendering goes up to my <ui-view/>, which is empty, and that's it.
Two ways to get around that.
- Use
my-app.js instead. Not the best.
- Turn uglify's mangling off in the gulpfile (in the
dist() function). But really not the best for production.
Any advice?
Hello,
When running
gulp dist, the resultingdist/my-app.min.jsjust doesn't run as expected.I'm using ui-router. When debugging inside my app's
.config(), I see dependencies (including$stateProvider) are injected correctly.But when it comes to states I've declared, they're never triggered. I tried debugging inside each state's controller, but that simply never happens (while trying to access appropriate routes of course).
In the end, the final rendering goes up to my
<ui-view/>, which is empty, and that's it.Two ways to get around that.
my-app.jsinstead. Not the best.dist()function). But really not the best for production.Any advice?