How to create a reusable ionic-card to populate it with different data?

I am new to ionic development, but i am familiar with its concepts of ionic-cards that shows data in cards . The issue i am having is how to design a ionic-card in its template file where all data including it’s label (that are static most of the time) is dynamic. I don’t want to create multiple ionic-cards, and since the data is different every time for every card , i just want my single ionic card to display different data dynamically (including it’s label. I hope i have explained my point well. Any help would be appreciated.

I would suggest emulating the HeroDetailComponent from the Tour of Heroes.

1 Like