Skip to content

Instantly share code, notes, and snippets.

View davidpett's full-sized avatar
👨‍🏫
full-time contract at Marriott

David Pett davidpett

👨‍🏫
full-time contract at Marriott
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
showContent: false,
didInsertElement(){
this._super(...arguments);
Ember.run.next(this, this.displayModalContent);
},
displayModalContent(){
this.set('showContent',true);
/*
* Working authentication with
* Firebase 2.0.x + Ember.js 1.8.1 + Ember Data Canary + EmberFire 1.3.0 + Ember CLI
* works for me! oskar@rough.dk
*
* Note: this assumes you've set up login on your Firebase,
* only handles Google and Facebook for now,
*
* In your templates: <button {{action 'login' 'google'}}>Log in with Google</button>
*/
@davidpett
davidpett / app.js
Last active December 15, 2015 05:39 — forked from Atinux/app.js
/*
** Client side - /public/src/app.js
*/
var myApp = {
// Collections
Collections: {
list: Backbone.Collection.extend()
},
// Views