Vue Create Application Configurations

The createApp method in Vue can create a Vue application instance. When creating an application instance, you can pass in a JavaScript object to provide configuration items related to data when the application is created.

  • The data option provides global data required by the application;
  • The props option is used to receive data passed from parent components;
  • The computed option is used to configure computed properties of the component;
  • The methods option is used to configure methods that need to be used in the component;
  • The watch option is used to add listener functions for changes in component attributes.