To-do list | Part 04 - Simplifying the components using jsLayout | Projects in Magento 2

Опубликовано: 09 Октябрь 2024
на канале: Know the Mage
229
17

In this part of tutorial we will discuss about moving the scope and components JSON data to the xml layout and pass it as an argument to the block. Then using getJsLayout() method we see how the xml data is converted into JSON string. Finally we will simplify the todo data by creating a js model which will keep the data as an observable array.