there is a click event in a button on the login page about.html
< button ion-button outline (click) = "tomodal ()" > there is no login < / button >
in
about.ts
import {Register} from". / register"
tomodal () {
console.log(1);
let contactModal = this.modalCtrl.create(Register);
contactModal.present();
}
directory:
register.html:
register.ts:
import { Component } from "@angular/core";
import { ModalController, Platform, NavParams, ViewController } from "ionic-angular";
@Component({
})
export class Register {
}
:
:
page appears but the login page does not disappear. Why