Optional$parentOptional$scopenameRecursively schedules listeners for every reachable object key in the value.
Removes a listener by id from the foreign watcher map.
Removes a listener by id from the local watcher map.
Internal event propagation helper.
Propagates either upward ($emit) or downward ($broadcast) and
constructs the shared event object on first use.
Returns whether this scope instance is the root scope.
Registers a listener under a watched key owned by a foreign proxied scope.
Registers a listener under a watched key on this scope.
Evaluates an expression and routes any thrown error through the exception handler.
Broadcasts an event downward through the scope hierarchy.
Emits an event upward through the scope hierarchy.
Evaluates an Angular expression in the context of this scope.
Optionallocals: Record<string, any>Searches this scope tree for a scope with the given id.
Merges enumerable properties from the provided object into the current scope target.
Creates a prototypically inherited child scope.
OptionalchildInstance: ScopeCreates an isolate child scope that does not inherit watchable properties directly.
Optionalinstance: ScopeRegisters an event listener on this scope and returns a deregistration function.
Queues a callback to run after the current listener batch completes.
Searches the scope tree for a scope registered under the provided name.
Creates a transcluded child scope linked to this scope and an optional parent instance.
OptionalparentInstance: ScopeRegisters a watcher for a property along with a listener function. The listener function is invoked when changes to that property are detected.
An expression to be watched in the context of this model.
OptionallistenerFn: ListenerFnA function to execute when changes are detected on watched context.
Optionallazy: boolean = falseA flag to indicate if the listener should be invoked immediately. Defaults to false.
A function to deregister the watcher, or undefined if no listener function is provided.
The target object.
The name of the property being deleted.
Intercepts property access on the target object. It checks for specific
properties (watch and sync) and binds their methods. For other properties,
it returns the value directly.
The target object.
The name of the property being accessed.
The proxy object being invoked.
The value of the property or a method if accessing watch or sync.
Intercepts and handles property assignments on the target object. If a new value is an object, it will be recursively proxied.
The target object.
The name of the property being set.
The new value being assigned to the property.
The proxy intercepting property access.
Returns true to indicate success of the operation.
Scope class for the Proxy. It intercepts operations like property access (get) and property setting (set), and adds support for deep change tracking and observer-like behavior.