I want to know the difference between declaration of this two function in angular controller
function demo() {
};
scope.demo = function() {
};
Whether this two function are similar in performance or not?,Which one is the better option?
I know only one difference that watch can be applied to a function which is in the scope means angular directive or element can't call javascript function.