I need to create a click event that when pressed creates an input in the view. How can I do this ? Thank you Ps: use ionic2 typescript
HTML
<ion-navbar *navbar>
<ion-title>
POSimplex
</ion-title>
</ion-navbar>
<ion-content class="home" padding>
<button ion-button full>Login</button>
<p>
<button ion-button full>Criar conta</button>
</p>
<p>{{ sl }}</p>
</ion-content>
Typescript
import {Component} from "@angular/core";
import {NavController} from 'ionic-angular';
@Component({
templateUrl: 'build/pages/home/home.html'
})
export class HomePage {
sl: string
constructor(private navController: NavController) {this.sl = '<button ion-button full>Criar conta</button>'}
}