Skip to content

Instantly share code, notes, and snippets.

Lionel Viet Leooo

Block or report user

Report or block Leooo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Leooo
Leooo / controllers.application.js
Last active Sep 5, 2017
bug-relationship-resolve-after-api-fail
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@Leooo
Leooo / application.controller.js
Created Oct 26, 2015
attrbutes disappearing when observer on model
View application.controller.js
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"));
You can’t perform that action at this time.