AngularJS. How to call controller function from outside of controller component
How I can call function defined under controller from any place of web page (outside of controller component)? It works perfectly when I press “get” button. But I need to call it from outside of div controller. The logic is: by default my div is hidden. Somewhere in navigation menu I press a button and … Read more