How can i change image when i click button?

Hi all,
I want to change img or img src when i click the button,so how can i do.
I search the google and i cant found it …
Thanks for help :slight_smile:

bind the src of the image to a variable. upon clicking the button, update the variable.

Thank you, its sensible but i am new on ionic 2 can you to recommend any source for binding src to a variable ?

I would recommend working through the Tour of Heros on the Angular site to help get the basics of Angular. That is the core the really powers Ionic.

Beyond that resource, here are two others:
Angular in Action is today’s Deal of the Day (March 2) at @ManningBooks, get it 50% off! (

You can also pick up my book, Mobile App Development with Ionic 2 (

1 Like