# Extend the \*ngIf Syntax to Create a Custom Permission Directive

DevFeed: [Extend the \*ngIf Syntax to Create a Custom Permission Directive](<https://devfeed.tech/articles/extend-the-ngif-syntax-to-create-a-custom-permission-directive-21326.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2018/02/angular-permission-directive/>)

Published: 2018-02-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [extend](<https://devfeed.tech/tags/extend.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implement](<https://devfeed.tech/tags/implement.md>), [permission](<https://devfeed.tech/tags/permission.md>)

## AI overview

A tutorial on extending Angular's *ngIf syntax to create a custom permission directive. It explains how to show or hide elements based on the authenticated user's permissions and discusses implementing permission checks and logical OR comparisons.

## Source excerpt

Lorem ipsum dolor sit amet