Our great sponsors
-
cat-toolkit-angular-starter
This repository is for Medium story Angular Starter Kit for Fast Prototype
-
ngx-permissions
Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I am working on an Angular Starter Kit (https://github.com/workcontrolgit/cat-toolkit-angular-starter) with boilerplate code for UI/UX Bootstrap, server-side pagination, sort, filter, and CRUD.
The way I did it was I wrote a core services library that all of our angular applications will use so they can all easily get any updates. When the service gets loaded, it checks for the presence of the jwt (whether in a cookie or local storage), and validates it. If it's valid, I use the @auth0/angular-jwt package to do this, and also decode it, it grabs the list of roles from the token and updates the ngx-permissions service. This service is an entry point so the application doesn't load until this check happens.
Related posts
- New to angular here, making a small project to test it out (angular13, Laravel backend), liking it so far! One thing I have been is proving difficult, is some kind of ACL, roles and permissions etc. Some good articles or examples out there that you guys recommend? Thank you!
- Strategies for implementing a Role based UI?
- Roles hierarchy
- Migrating From until-destroy To Angular takeUntilDestroyed
- Support for 40 locales on angular 17 standalone - how?