angularjs template edition before show it

I have an angular app, and some permissions for users.

I neet to remove a section of my template (I´m using angular route and templates) before present it.

Example: if I have and user with just "create" permission, but not edit permision, I need to remove a div with class like class="edit". But I need to remove that before present the view.

¿Any idea? thank you so much