Component definition object

Building Vue components in the form you witnessed now involves defining the component definition object, which is the exported object from the script block in single file components.

The component definition object supports different properties that you can use to shape the component and implement its behavior and state. The following are the main options :

  • name: The name of the component
  • components: Registration of child components rendered within a certain component
  • props: The immutable input that the component allows parent components to pass in
  • data: The mutable state the component manages for its own behavior
  • methods: The implemented behavior methods associated with the component
  • computed: The set of properties ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.