Created
July 27, 2017 13:29
-
-
Save stalniy/55a7580fb8c877c0d3f5f3512a90959c to your computer and use it in GitHub Desktop.
CASL can in template with signal behavior
This file contains hidden or 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
<nav class="menu"> | |
<h3>Menu</h3> | |
<ul> | |
<li if.bind="'Post' | can: 'create' & signal: 'ability-changed'"> | |
<a route-href="route: newPost">Add Post</a> | |
</li> | |
</ul> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment