Is it possible to use theAngularFire routeSecurity module with angular UI-ROUTER instead of the standard ng-route provider? Is there a version of routeSecurity that would work with ui-router?
是否可以使用具有角度UI-ROUTER而不是标准ng-route提供程序的AngularFire routeSecurity模块?是否有适用于ui-router的routeSecurity版本?
1 个解决方案
#1
8
@mattvv Gave me this gist while I was talking on him in the angular irc channel. So essentially you would just need to replace the routesecurity.js
file in angularfire directory assuming that you used yeoman to scaffold your application.
@mattvv当我在角度irc频道谈论他时,给了我这个要点。所以基本上你只需要替换angularfire目录中的routesecurity.js文件,假设你使用yeoman来构建你的应用程序。
A neat thing to do is just to create another file named routesecurity-ui-router.js
instead of replacing the content of the routesecurity.js
.
一个巧妙的事情就是创建另一个名为routesecurity-ui-router.js的文件,而不是替换routesecurity.js的内容。
So to give a little bit of information about the gist, basically mattvv just modified the routes
term and use state
instead.
因此,为了给出一些关于要点的信息,基本上mattvv只是修改了路线术语而改为使用状态。
#1
8
@mattvv Gave me this gist while I was talking on him in the angular irc channel. So essentially you would just need to replace the routesecurity.js
file in angularfire directory assuming that you used yeoman to scaffold your application.
@mattvv当我在角度irc频道谈论他时,给了我这个要点。所以基本上你只需要替换angularfire目录中的routesecurity.js文件,假设你使用yeoman来构建你的应用程序。
A neat thing to do is just to create another file named routesecurity-ui-router.js
instead of replacing the content of the routesecurity.js
.
一个巧妙的事情就是创建另一个名为routesecurity-ui-router.js的文件,而不是替换routesecurity.js的内容。
So to give a little bit of information about the gist, basically mattvv just modified the routes
term and use state
instead.
因此,为了给出一些关于要点的信息,基本上mattvv只是修改了路线术语而改为使用状态。