scope for resolving event and method names

object $scope;


some.$scope = {
   action:function(){ alert("works"); }
some.attachEvent("onItemClick", "action");


When event name or click handler defined as string name, component will check is the handler with such name exists in the $scope object first, and only after that will try to locate the global handler with the same name.

Back to top