Writing Custom Structural Directives in Angular
Let the DOM structure depend on user privileges