As an illustration, consider the code snippet below where I want func2 to invoke func1.
App.factory("MyLib", function() {
return {
func1: function() {
console.log("func1");
},
func2: function() {
func1();
}
}
});
Is there a way to achieve this?