Skip to content

Instantly share code, notes, and snippets.

@shamique
Created October 19, 2018 14:03
Show Gist options
  • Save shamique/dbacfeb500129377c5bc3aed66008e73 to your computer and use it in GitHub Desktop.
Save shamique/dbacfeb500129377c5bc3aed66008e73 to your computer and use it in GitHub Desktop.
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