Lifecycle Hook 'created' Example

Using the created lifecycle hook to change the 'text' data property.

This is the earliest point in the component's lifecycle where we can access the Vue instance properties.

text:

'The component is now created'