Observable.observe(...)
allows options
parameter, third one, optional.
Some of the options are filtering ones, allowing to specify the changes of interest from within the observable graph. Here is a detailed description of those options.
pathsFrom
Value expected to be a non-empty string representing a path, any changes of which and deeper will be delivered to the observer.
This option MAY NOT be used together with
path
option.
|
Given, that we have subscribed for the changes via:
Following mutations will be delivered to the callback :
Following mutations will not be delivered to the callback :
|
pathsOf
Value expected to be a string, which MAY be empty, representing a path. Changes to direct properties of which will be notified.
|
Given, that we have subscribed for the changes via:
Following mutations will be delivered to the callback :
Following mutations will not be delivered to the callback :
|
path
Value expected to be a non-empty string, representing a specific path to observe. Only a changes of this exact path will be notified.
|
Given, that we have subscribed for the changes via:
Following mutations will be delivered to the callback :
Following mutations will not be delivered to the callback :
|