+ 5

In js frameworks we can use loops and conditionals in the html markups, but when it is useful?

5th Jul 2019, 7:11 PM
CodeFu
CodeFu - avatar
3 Antworten
+ 4
In js framewoks can use loops in lists, to generate result of database and conditional is goodnto manage dynamic content or hide or show layout
5th Jul 2019, 11:14 PM
Oliver Valiente Oliva
Oliver Valiente Oliva - avatar
+ 5
When you need to make a recursive content. For example a list of users(where users get from BD), So you don't need to make it by hand, when a new user will appear.
5th Jul 2019, 10:11 PM
Maxim
Maxim - avatar
+ 1
Thanks
6th Jul 2019, 9:13 AM
CodeFu
CodeFu - avatar