Created
October 19, 2018 14:03
-
-
Save shamique/dbacfeb500129377c5bc3aed66008e73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from "@angular/core"; | |
import { NavController, NavParams } from "ionic-angular"; | |
import { CognitoServiceProvider } from "../../providers/cognito-service/cognito-service"; | |
@Component({ | |
selector: "page-sign-up", | |
templateUrl: "sign-up.html" | |
}) | |
export class SignUpPage { | |
email: string; | |
password: string; | |
constructor( | |
public navCtrl: NavController, | |
public navParams: NavParams, | |
public CognitoService: CognitoServiceProvider | |
) {} | |
register() { | |
this.CognitoService.signUp(this.email, this.password).then( | |
res => { | |
console.log(res); | |
}, | |
err => { | |
console.log(err); | |
} | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment