Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. import { Component } from '@angular/core';
  2. import { Auth, User } from '@ionic/cloud-angular';
  3. import { NavController, Platform } from 'ionic-angular';
  4. import {AboutPage} from '../about/about';
  5. import {ContactPage} from '../contact/contact';
  6. import {ModeSelectPage} from '../mode-select/mode-select';
  7.  
  8.  
  9. @Component({
  10. templateUrl: 'build/pages/home/home.html',
  11. })
  12. export class HomePage {
  13.  
  14. public constructor(public navCtrl: NavController, private platform: Platform, public user: User, public auth: Auth) {
  15.  
  16. }
  17.  
  18. public login() {
  19. this.platform.ready().then(() => {
  20. this.auth.login('facebook').then((success) => {
  21. console.log("success");
  22. }, (error) => {
  23. console.log("error: " + error );
  24. });
  25. console.log("Morjes");
  26. });
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement