I am pulling some user profile data from the database and storing it in an observable.
I can access properties with typing profileData.username,profileData.msgnumber etc...
profileData.avatar returns the name of avatar user is using. What I'm trying to do is if profileData.avatar equals "bear" display bear picture in HTML or if it equals "spider" display spider in HTML. Now I can display just string by writing {{profileData.avatar}}
profileData