I have a PHP app that has some AngularJS pages.
I want to re-use one of the templates in a different Angular controller, and use Angular to hide some content based on values of drop downs.
I don't want to have to repeat myself and make an almost identical template with the ng-hide in there, as I'd end up making multiple copies of the content and risk things getting out of step when changes are made.
The other places where the templates are used do not and will not have the methods defined to hide and show based on the drop downs. How do I hide and show content in Angular, without using ng-hide etc? Do I need to make dummy controller methods to avoid errors? Surely there's a better way?