title: Ember.js - this.set() in ApplicationRoute not working
body: <p>I am trying to set a boolean variable whenever the user is logged in. </p>
  
  <pre><code>App.ApplicationRoute = Ember.Route.extend({
    isLoggedIn: false,
  
    init: function() {
        if (loggedIn) {
          this.set('isLoggedIn', true);
        } else {
          console.log(error)
          this.set('isLoggedIn', false);
        }
      });
    }
  });
  </code></pre>
  
  <p>However, on <code>this.set()</code> I get:</p>
  
  <blockquote>
    <p>Uncaught TypeError: undefined is not a function  </p>
  </blockquote>
  
  <p>Any ideas?</p>
  
  <p>I figured that the best place to handle user session is in the <code>App.ApplicationRoute</code> since its the root of everything. Does this cause a problem?</p>
  
  <p>UPDATED:
  With feedback here is the current / full code. </p>
  
  <pre><code>App.ApplicationRoute = Ember.Route.extend({
    isLoggedIn: false,
  
    init: function() {
      this._super();
  
      auth = new FirebaseSimpleLogin(appRef, function(error, user) {
        if (user) {
          console.log(user)
          this.set('isLoggedIn', true);
        } else {
          console.log(error)
          this.set('isLoggedIn', false);
        }
      });
    }
  })
  </code></pre>
  
  <p>So I left out my Firebase code previously because I didnt really think it relevant, but for the sake of tracking down the problem, I'll add it in.</p>