Implementation and notes
How to do this for existing routing components:
- Make sure you’re up-to-date with the generated code. So run the Angular Generator
- Make sure you’re up-to-date with the action list services. Run the Angular_ActionLoader generator
- Create an authorization service (if there isn’t one you can use)
- Update your route object in the *-routing.module.ts
- Update all *ngIfs
How to do this for new routing components:
- Make sure you’re up-to-date with the generated code. So run the Angular Generator
- Create an authorization service (if there isn’t one you can use)
- Create your route object in the *-routing.module.ts
- Create your routing component with all subcomponents (make sure to set all ngIfs)
- Run the Angular_ActionLoader generator
Notes:
*ngIf=“authorised” should not be removed yet, this will be done later on. Within entity pages the structure is as follows: detailpage (needs allowAction) detailtab (needs allowAction) detail (needs allowAction)
None of the abstract classes (entityDetailTabImplementationComponent for example) need allowAction, even though they currently have setFunctionsAndPermissions.