All Products
Document Center

Mobile Platform as a Service:Component configuration

Last Updated:Feb 04, 2021

A custom component must be declared in [component].json. If the custom component also depends on other components, you also need to declare them.

  1. {
  2. "component": true, // Mandatory. The value of the custom component must be true
  3. "usingComponents": {
  4. "other":"../other/index" // Components that the custom component depends on
  5. }
  6. }

Parameter details

Field Type Mandatory Description
component Boolean Yes Declares that the component is a custom component.
usingComponents Object No Declares the path of the components that the custom component depends on. An absolute path starts with /, and a relative path starts with . / or .. /.