Skip to content

Instantly share code, notes, and snippets.

View Leooo's full-sized avatar

Lionel Viet Leooo

View GitHub Profile
@Leooo
Leooo / controllers.application.js
Last active October 18, 2019 12:25
model-fragments issue 340
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@Leooo
Leooo / controllers.application.js
Last active September 5, 2017 14:38
bug-relationship-resolve-after-api-fail
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@Leooo
Leooo / application.controller.js
Created October 26, 2015 15:19
attrbutes disappearing when observer on model
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
_test: function(){
var myModel=this.store.createRecord("myModel2",{});
console.log(myModel);
myModel.set("attr1",2);
console.log(myModel._internalModel);
console.log(Ember.get(myModel.constructor,"attributes"));