Constructor
new NutritionPage()
Attach the shadowroot which contains the nutrition page materials.
- Source:
Members
data
The data needed to populate the nutrition materials are passed in as "data".
Nutrition is extracted using data["nutrition"]["nutrients"].
- Source:
Methods
backToView(data)
Load the view recipe page action.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | a JSON data object contains information to load back the view recipe page. |
- Source:
Returns:
Void