---
title: "Discussion on \"Angular - custom *ngIf directive\" | Hashnode"
description: "Discussion on \"Angular - custom *ngIf directive\". In this article, I'll show how to create a custom structural directive that works similarly to Angular's ngIf. The goal is to create a directive that checks if a current user has required permissions by passing them to the directive. The directive sh..."
url: "https://hashnode.com/posts/angular-custom-ngif-directive/65032d81add1cdd75bd20b55"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Angular - custom \*ngIf directive](https://blog.procode.pl/angular-custom-ngif-directive?utm_source=hashnode&utm_medium=feed)

In this article, I'll show how to create a custom structural directive that works similarly to Angular's ngIf. The goal is to create a directive that checks if a current user has required permissions by passing them to the directive. The directive sh...

Sep 14, 2023 · 5 min read · blog.procode.pl  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#directive](https://hashnode.com/tag/directive)
-   [#custom](https://hashnode.com/tag/custom)
-   [#ngif](https://hashnode.com/tag/ngif)

## Written by

[Bartosz Szłapak](https://hashnode.com/@Barcioch)

@Barcioch · Warsaw, Poland

  
[View profile](https://hashnode.com/@Barcioch)

Full stack developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
