Created
July 17, 2018 10:59
-
-
Save stalniy/9ac59e0ecb97a1443b035117844a6e40 to your computer and use it in GitHub Desktop.
Angular CASL example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngIf="post | can: 'delete'"> | |
<button (click)="deletePost()">Delete</button> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment