Example $root Object

The 'text' data property can be reached and manipulated directly from a child component by the use of the $root object.

Initial text in the root component.

Change Text

Click the button to toggle the text in the PRE tag of the root component.