This is a simple lock screen component with numbers for your Ionic 2+ app.
import { LockScreenModule, LockScreenComponent } from 'ionic-simple-lockscreen';
@NgModule({
declarations: [
],
imports: [
LockScreenModule
],
entryComponents: [
LockScreenComponent,
],
providers: []
})
export class AppModule {}
import { LockScreenComponent } from 'ionic-simple-lockscreen';
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController) {
}
openLockscreen() {
this.navCtrl.push(LockScreenComponent,{
code:'1234',
ACDelbuttons:false,
passcodeLabel:'Please Enter Passcode',
onCorrect:function(){
console.log('Input correct!');
},
onWrong:function(attemptNumber){
console.log(attemptNumber + ' wrong passcode attempt(s)');
}
});
}
}