I think you need acl-show directive that you can use directly in dom to show dom elements if the user has specific abilities.
<button acl-show='logout'> Logout </button>
Coverage decreased (-3.09%) to 53.636% when pulling 5e784c5046536dbdcb959b09fba40e83d6c8b5a2 on mohamednagy:master into 6e6aeaca14e773fde51df8cc48bdf694f277f8be on mikemclin:master.
I think you need acl-show directive that you can use directly in dom to show dom elements if the user has specific abilities.
<button acl-show='logout'> Logout </button>