|
|
|
|
|
by pyre
4228 days ago
|
|
Just to be clear: I'm not apologizing for Ember.js. There are lot of warts, and having actually built things in both Ember.js and Angular.js, I would have to say that I much prefer Angular.js. For example, "Silent Errors" is spot-on. One example of an error (technically Ember-Data, but they are pretty much joined at the hip): 1. Save data for a particular model.
2. The data actually gets sent to the API and saved.
3. The API returns the updated model data.
4. Ember.js fails to load the updated data.
Turns out that the model was created with `store.createRecord('ModelName')` instead of `store.createRecord('modelName')`. Adding the capitalization to the first letter failed to raise any errors and worked in all but one place in the code. This took me a couple of hours of basically debugging Ember-Data internals (and even thinking that I had found a bug in their data loading) to figure this out (which was also difficult since some of the key methods are only generated at run-time so it's difficult to search the codebase for them). |
|
$scope.myObj = {x: 2}; <div ng-bind="myObj.notHere"></div>
(forgive me if my syntax is off a bit, haven't written angular in awhile)
The example he gave is an object not having a properly on it that he's trying to access. Any javascript templating language will have this issue