Explorar el Código

linked registration button to mainMenu

Kris Blassingame hace 6 años
padre
commit
781a02f19d

+ 3
- 0
frontEnd/src/pages/register/register.html Ver fichero

@@ -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 Ver fichero

@@ -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
 }