1
Archives:
index.html
controllers/control.js
Directives/directive.js
Directives/boot.html
*i have a function called $Scope.change(age) = Function(){.... }; in the control.js
*in the directive I have templateUrl: "botao.html" and Scope{function: "&"};
*no index tenho < botao funcao="change(age)"></botao>
*in the.html button I have < button ng-click="function(20)"> Test </button>
I want to call the function change from within the directive but keeps giving the following error Typeerror: Cannot use 'in' Operator to search for 'change' in 1