How to enable route protection when using AngularFire using Angular ui-router?

Is it possible to use AngularFire route protection module with angular UI-ROUTER instead of the standard ng route provider? Is there a version of routeSecurity that will work with ui-router?

+7
angular-ui-router firebase angularfire
source share
1 answer

@mattvv Gave me this gist while I talked to him on angular irc. So essentially you just need to replace the routesecurity.js file in the routesecurity.js directory, assuming you used yoman to spoof your application.

A good thing is to simply create another file called routesecurity-ui-router.js instead of replacing the contents of routesecurity.js .

To give a little information about the essence, basically mattvv just changed the term routes and used state .

+8
source share

All Articles