浏览代码

linked registration button to mainMenu

Kris Blassingame 6 年前
父节点
当前提交
781a02f19d
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 3
    0
      frontEnd/src/pages/register/register.html
  2. 6
    0
      frontEnd/src/pages/register/register.ts

+ 3
- 0
frontEnd/src/pages/register/register.html 查看文件

@@ -19,4 +19,7 @@
19 19
         </ion-item>
20 20
       
21 21
       </ion-list>
22
+      <button ion-button block (click)="register()">
23
+          <b>Register</b>
24
+        </button>
22 25
 </ion-content>

+ 6
- 0
frontEnd/src/pages/register/register.ts 查看文件

@@ -1,5 +1,6 @@
1 1
 import { Component } from '@angular/core';
2 2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+import { MainMenuPage } from '../main-menu/main-menu';
3 4
 
4 5
 /**
5 6
  * Generated class for the RegisterPage page.
@@ -22,4 +23,9 @@ export class RegisterPage {
22 23
     console.log('ionViewDidLoad RegisterPage');
23 24
   }
24 25
 
26
+  register() {
27
+    this.navCtrl.setRoot(MainMenuPage);
28
+
29
+  }
30
+
25 31
 }