Improve pin

This commit is contained in:
Peter Maquiran
2021-05-27 21:44:18 +01:00
parent 449b248d19
commit 1c3a1bcba2
5 changed files with 81 additions and 11 deletions
+12
View File
@@ -7,9 +7,21 @@ import { Component, OnInit } from '@angular/core';
})
export class PinPage implements OnInit {
code = []
constructor() { }
ngOnInit() {
}
setCode(code: string) {
if(this.code.length < 4) {
this.code.push(code)
}
}
clearCode(){
this.code =[]
}
}