-
-
Save sirvine/9357cee3702bea9893c18ad5003240b3 to your computer and use it in GitHub Desktop.
Group-By Bug (Unable to set key with some symbols)
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Model from "ember-data/model"; | |
import attr from "ember-data/attr"; | |
export default Model.extend({ | |
title: attr('string'), | |
supplierName: attr('string'), | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model() { | |
return this.store.push({ | |
data: [ | |
{ | |
id: '1', | |
type: 'contract', | |
attributes: { | |
title: 'Master Agreement', | |
supplierName: 'Fusible LLC' | |
} | |
}, | |
{ | |
id: '2', | |
type: 'contract', | |
attributes: { | |
title: 'Services Agreement', | |
supplierName: 'Betacone Data Inc' | |
} | |
}, | |
{ | |
id: '3', | |
type: 'contract', | |
attributes: { | |
title: 'Client Agreement', | |
supplierName: 'Betacone Data Inc' | |
} | |
}, | |
// The bug is caused by the periods in the supplierName. Remove | |
// them to get this example to render properly. | |
{ | |
id: '4', | |
type: 'contract', | |
attributes: { | |
title: 'User Agreement', | |
supplierName: 'Yamazaki Hinoki K.K.' | |
} | |
} | |
] | |
}); | |
} | |
}); |
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
{ | |
"version": "0.10.4", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.6.0", | |
"ember-data": "2.6.0", | |
"ember-template-compiler": "2.6.0" | |
}, | |
"addons": { | |
"ember-composable-helpers": "1.1.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment