Weiming Chen
Nov 6, 2021

--

Hi Samantha, the burger.wxml file (think of a html template file) does not handle logic, those parameters are simply placeholders, actual values are set from burger.js (check the setData method). The logic handling (e.g fetch API values; variable declaration etc) are written in the js file, which means you do the requests of API in js file. I hope this answer your question.

--

--

Weiming Chen
Weiming Chen

Written by Weiming Chen

I occasionally write about software, web, data, machine learning, random thoughts.

Responses (1)