I'm including various subviews using ng-include, each of which have their own controllers. I want to be able to specify a function that takes a string (coming from a textbox, if you care) and decides on a view by view basis whether it should be visible or not. For example, if I type "tools" into the textbox, I want those views that aren'r related to tools to disappear. Ideally, each view (and its controller) would specify its own filter function.
Can I access the controllers in a view and call one of their functions? I'm assuming it's useful to have the function specified in the view's controller to keep the related code together.