I have a parent controller and i want to call a function in link from controller but when try to access it gives
TypeError: undefined is not a function
My Controller:
scope.test = function(m)
{
linkfunction(m);
}
My Directive: .......... link: function(scope, element, attrs) {
linkfunction = function (n){
........somethings........
}
..........
}
How can i call function in link from directive?
........somethings........
– Satpal