3
I need to create a click event that when pressed creates an input in the view. How can I do that? Thank you Ps: ionic2 typescript use
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>'}
}
What have you done? Post the code to help you better.
– Renan Araújo
I actually tried a test without the click, just to test ...
– Augusto Furlan