$scope
scope for resolving event and method names
let $scope: object
Example
Section titled “Example”grid.$scope = { action:function(){ alert("works"); }};grid.attachEvent("onItemClick", "action");
Details
Section titled “Details”When the event name or click handler is defined as a string name, the component will check if 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.