limitTo
Restricts bindings that can be bound to (attached parent objects of) the specified object, if the object itself does not include a corresponding property.
static
static limitTo(object: ManagedObject, filter?: (property: string | symbol) => boolean): void
Note
This method is used automatically on the app object, since any attempt to bind to a property (e.g. from the view) should at least stop there. For further limitations, call this method with a filter to restrict bindings on any other object.
Parameters
- object — The object for which to restrict bindings
- filter — A function that returns true if a property is allowed to pass, or false if an attempt to bind should result in an unhandled error; if not provided, no properties are allowed
Related
- class BindingA class that represents a property binding.