Hi,
I’m trying to get cracking with the Ionic platform but can’t figure out what to import to get Ionic Users working.
I’ve got the code from the docs in a click handler and I added ionic-web-platform and did the init too
I get a Cannot find name ‘Ionic’. error when I run the function.
Its a really basic login page with the code as follows:
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
@Component({
  templateUrl: 'build/pages/login/login.html',
})
export class LoginPage {
  constructor(public nav: NavController) {
  }
  login(){
    let success = function(user) {
      console.log('Logged me in');
    };
    let failure = function(errors) {
      for (var err in errors){
        console.error('This totally just failed');
      }
    };
    Ionic.Auth.login('facebook', {'remember': true}).then(success, failure);
  }
  
}
I think its simply a matter of importing and then adding to the constructor but I cant seem to find what?
Thanks
