mardi 11 juin 2019

DOM - Template, Reuse or Build

What is the best practice when loading data into a html view ?

Would it be :

  1. Using a global Template multiple times (the same element, just changing the element data)
  2. Creating a new instance of a template (already defined in the HTML) and cloning that to get multiple instances of the same view with different data
  3. Building the View in JavaScript



Aucun commentaire:

Enregistrer un commentaire