Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- import { Auth, User } from '@ionic/cloud-angular';
- import { NavController, Platform } from 'ionic-angular';
- import {AboutPage} from '../about/about';
- import {ContactPage} from '../contact/contact';
- import {ModeSelectPage} from '../mode-select/mode-select';
- @Component({
- templateUrl: 'build/pages/home/home.html',
- })
- export class HomePage {
- public constructor(public navCtrl: NavController, private platform: Platform, public user: User, public auth: Auth) {
- }
- public login() {
- this.platform.ready().then(() => {
- this.auth.login('facebook').then((success) => {
- console.log("success");
- }, (error) => {
- console.log("error: " + error );
- });
- console.log("Morjes");
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement