I have a little piece of HTML code that visually represents a customer in an ion-list by displaying its name and some other properties:
I am using it in my customer list page.
Now, I want to use the same HTML to represent a customer in another ionic view (Dashboard).
I wonder about the best practice now to re-use this piece of HTML.
Would it be recommended to define a new state for the template? If yes, how can I embed the template then in a list ('re-use it")? I tried this approach but failed with it, as I did not find out how to embed the template in a ion-list.
Or is there a completely other way recommended?