Can a new ionic view be opened by clicking on an image?

0

I have a menu that shows images, in which when I click on them I want you to show me a new view (A view of Ionic).

A view of Ionic itself, not the browser or things like that.

Is it possible to do this ..? Thank you!! : D

    
asked by Elias Galarza 28.10.2017 в 17:58
source

1 answer

0

You just have to add a click event to your component and link it to a method that finally pushes the view you want

html

<img src="http://via.placeholder.com/350x150" (click)="abrirVista()">

ts

abrirVista(){
  this.nav.push(HomePage);
}
    
answered by 01.11.2017 / 13:34
source