-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.MonthlyDatepickerComponent = Ember.Component.extend({ | |
classNames: ['dp'], | |
didInsertElement: function() { | |
var _this = this; | |
this.$().datepicker({format: 'M-yyyy',minViewMode: 'months'}) | |
.on('changeDate', function(e) { | |
_this.sendAction('action', e.format()); | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dbRef = new Firebase("https://YOUR-FIREBASE.firebaseio.com/"); | |
export default Ember.Controller.extend({ | |
/** | |
@property currentUser | |
@type {User} | |
@default null | |
*/ | |
currentUser: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Router | |
import Ember from 'ember'; | |
var Router = Ember.Router.extend({ | |
location: ClientENV.locationType | |
}); | |
Router.map(function() { | |
this.resource('login'); | |
this.resource('secretRouteToBeProtected'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Original source: https://gist.github.com/oskarrough/914653b03d886c015320 | |
* Modified fork: https://gist.github.com/consideRatio/761c6286158e70feaed7 | |
* | |
* 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. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Module dependencies | |
*/ | |
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'), | |
_ = sails.lodash; | |
var async = require('sails/node_modules/async'); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public getForecast(days: number) { | |
// Parameters obj- | |
let params: URLSearchParams = new URLSearchParams(); | |
params.set('appid', StaticSettings.API_KEY); | |
params.set('cnt', days.toString()); | |
//Http request- | |
return this.http.get(StaticSettings.BASE_URL, { | |
search: params | |
}).subscribe( |