Example code for a custom structural directive in angular which acts similar to *ngIf but can be customised to fit your business logic like user roles...