javascript - EmberJS-issue with uppercase letters in model properties -
i created fiddle below replicates error. basically, api i'm consuming has model properties starting uppercase , reason ember doesn't seem it. issue when there nested object leading uppercase property below contact.communicationinfo.mobilephoneno
contact: { communicationinfo: { mobilephoneno: '2323232' } } now when i'm transitioning child route uses same model, ember throws error uncaught typeerror: cannot read property 'communicationinfo' of undefined can override default model properties lowercase i'm not sure if it's bug in ember or doing wrong?
fiddle: http://jsfiddle.net/vmz2u/1/
click 'go contacts' , click 'go details' while inspecting console. if uncomment 2 lines in contacts model, works fine.
Comments
Post a Comment