samedi 25 février 2017

this.get('session') returns undefined for torii

I'm trying to use Facebook login using torii in an Ember app. I am using ember 2.0 (2.11 to be specific). Below is handlebar of my component my-login

Login Using Faceboo

action in my component is defined as

import Ember from 'ember';

export default Ember.Component.extend({
    actions:{
        loginUsingFacebook(){
            let session = this.get('session'); //session comes undefined
            console.log(session);
        }
    }
});

i have setup my environment as defined [here][1]

in my application route i am using it as

 


I am using torii-adapter which on path app/torii-adapters and exactly as provided here

i have installed torii using npm install torii. Could you please let me know what i am missing.

I am not able to get the session.




Aucun commentaire:

Enregistrer un commentaire