`
@Component({
selector: '#app',
template: AppTemplate,
styleUrls: [ './app.component.styl' ]
})
export class App {
public amount: string | number = ''
public shouldOpenPassword: boolean = false
confirmAmount(e) {
if (e) {
e.preventDefault()
}
if (this.amount) {
this.shouldOpenPassword = true
}
}
confirmPassword(password) {
this.shouldOpenPassword = false
setTimeout(() => alert(`Amount: ${this.amount}\nPassword: ${password}`), 200)
}
}