Closed wsgavin closed 9 years ago
I'm not extremely familiar with yeoman generators but I believe the problem exists below from route/index.js
if( !skipFiles ) {
this.hookFor('angular:controller');
this.hookFor('angular:view');
}
Guessing that skipFiles
needs to be set to false, but not sure how that works. Doing a quick search, this variable names only exists in the route/index.js
file.
@wsgavin thanks for this. It looks like, in some cases, a second argument is being passed into this method inadvertently by some yeoman process. We can probably just change that to if( skipFiles !== true )
to resolve the issue. I'll put this in the next release.
In the current generator-angular
repo I could not find a skipFiles
reference either. Guessing this option would be nice but skipFiles
doesn't apear to get assinged (i.e. undefined
) anyware which is the cause of the resulting behavior. Again, I am not too familiar w/generators and how they work.
It's being assigned to true app/index.js calls. I don't think they are actually being skipped; I think the problem is that the route command is calling angular:method
instead of angularfire:method
. I'll fix this up.
In the interim, call angularfire:controller
and angularfire:view
manually.
Thanks for the response.
Handy tool! Any perspectives about this issue?
Until the next release, just call angularfire:controller and angularfire:view manually.
I know, it works. Was just wondering.. :)
generator-angularfire 0.8.2-7
Based on the documentation I expect that running
yo angularfire:route newroute
would:All I see happening is the update to routes.js. I summarized the output below. Thoughts?