Example $parent Object

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

Initial text in the parent component.

Change Text

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