Although there is no visible difference, the text on the screen is now derived from model data.

You can view this step live: π Live Preview of Step 3.
You can download the solution for this step here: π₯ Download step 3 (TS)π₯ Download step 3 (JS).
webapp/
βββ model/
β βββ data.json
βββ view/
β βββ App.view.xml
βββ Component.ts/.js
βββ index.html
βββ manifest.json
Assign the text property of the sap.m.Text control to the value {/greetingText}. The curly brackets enclosing a binding path (binding syntax) are automatically interpreted as a binding. These binding instances are called property bindings. In this scenario, the controlβs text property is bound to the greetingText property at the root of the default model. The slash (/) at the beginning of the binding path signifies an absolute binding path.
<mvc:View
xmlns="sap.m"
xmlns:mvc="sap.ui.core.mvc">
<Text text="{/greetingText}"/>
</mvc:View>
Next: Step 4: Two-Way Data Binding
Previous: Step 2: Creating a Model
Related Information