search

Home  >  Q&A  >  body text

angular.js - Is there any better example of rbac (permission control) in angular2?

I want to use angular2 to build a backend with permissions. Does anyone know of any open source or demos on github that you can take a look at? Or just give me some advice. The project is quite important and I can’t bear to develop it myself.

某草草某草草2793 days ago933

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-15 17:08:03

    1: RBAC is an idea in permission design and has nothing to do with the language framework.
    2: RBAC should focus more on the logical design of the backend (API). No matter how complicated the frontend looks, it is just a manifestation of permissions. 3: Yes. Angulas1’s experience in RBAC backend gives you some ideas

    - 后台和服务端需要接口来保持权限的统一准确性
    - 后台的路由、组件、UI上的东西需要和权限接口将要表现的功能保持一致(需存在,而非必须渲染)
    - 后台负责将权限中存在并可用的权限渲染(组件、菜单...什么形式都OK)
    - [一个基于Angular2的Admin后台][1]
    

    reply
    0
  • 黄舟

    黄舟2017-05-15 17:08:03

    Try this, the design is more like shrio:
    https://www.npmjs.com/package...

    reply
    0
  • Cancelreply