Closed wsgavin closed 9 years ago
this.env.options
is not set from the command line but an internal structure. It will probably make it into the next release as an option for the route
subgenerator. For now, simply open app/scripts/routes.js and change .when to .whenAuthenticated for the correct route. Cheers.
Thanks.
generator-angularfire 0.8.2-7
I have tried variations of the
yo angularfire:route
command with options to require auth but it does not seem to catch e.g.yo angularfire:route myroute --auth-required
. Therouter/index.js
code suggests this is possible.I expected that
--auth-required
would be enough but tried all the options below for good measure.Thoughts?