내가 등록 버튼을 클릭하면 regsuccess 페이지로 이동하는 모든 필드를 입력하면 모든 필수 필드를 채우는 것과 같은 메시지가 나타납니다.ionic2를 사용하는 경고 메시지
하지만 ionic2 및 타이프 스크립트를 사용하여 경고와 같은 메시지를 표시하려고합니다.
HTML :
<button primary full (click)="register()" >Register</button>
<p>{{regMsg}}</p>
.TS 파일 : 여기 ionic2 당신이 경고를 표시 할 수있는 방법입니다에
register(){
var _this= this;
// this.submitAttempt = true;
if(!this.registrationForm.valid){
_this.regMsg = "enter all required feilds";
}
else {
console.log("success!")
console.log(this.registrationForm.value);
_this.navCtrl.setRoot(RegThankyouPage);
}
아무도 도와주세요 – balaji
토스트를 사용하여 팝업 메시지를받을 수는 있지만 ionic2에서 사용하는 방법, 나도 모릅니다. ionic2에서 건배에 대해 알고 있다면 – balaji
[ ionic2를 사용하여 등록 (가입) 버튼 확인] (http://stackoverflow.com/questions/39367129/validation-for-registersign-up-button-using-ionic2) – sebaferreras