Updated on 2025-03-24 GMT+08:00

Bridge Templates

A bridge connects the frontend and backend data. When you develop a frontend page, you may need to retrieve backend data such as user IDs, order IDs, and information of products in the shopping cart. In this case, you can use a bridge, which calls backend APIs to obtain data from the backend. You can customize bridges using the preset bridge template. Before customizing a bridge, you need to download the bridge template and interconnect and reconstruct the bridge data based on the data structure of the widget. For details about how to customize a bridge, see Custom Bridges.

Viewing the Bridge Template

  1. Log in to Huawei Cloud Astro Canvas by referring to Logging In to Huawei Cloud Astro Canvas.
  2. On the main menu, click Resource Management in the upper right corner of the page.
  3. In the navigation pane, choose Page Assets > Bridge Templates.
  4. View the preset bridge template bridgeBasicTemplate.
  5. Click the template and view its details.

Downloading the Bridge Template

  1. Log in to Huawei Cloud Astro Canvas by referring to Logging In to Huawei Cloud Astro Canvas.
  2. On the main menu, click Resource Management in the upper right corner of the page.
  3. In the navigation pane, choose Page Assets > Bridge Templates.
  4. Click bridgeBasicTemplate to go to the details page.
  5. On the bridge template details page, click Download to download the template to the local PC.