Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

How to use functions from another controler

$
0
0
Hi, I am trying to figure out how to use a function from another controller, I steal my controller in the controler where I want to use its functions and then what I have to do ?

  1. $.controller('mycontroler1', {
  2. functionToUse : function(){},
  3. });
  4. $controller('wantToUseFunctionFrommycontroler1, {
  5. });




Viewing all articles
Browse latest Browse all 3491

Trending Articles