List item various template


#1

Hi all,

I have this case in my project:

I need to show a list that have different template for each item, depending on data type from json.
Ex. if data is ‘news’, show 'news template’
if data is ‘event’, then show ‘event template’

just like facebook list view, i think. Is it possible with ionic?
Thanks.


#2

Yes it’s very much possible. Have a look at this