-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Cannot read property '$id' of undefined #7230
Comments
@fitzchak I'm afraid that it will have to be narrowed down further to make it actionable... The plunker in the referenced issue includes like 10 different scripts so it is not obvious at all what is going on.... Please try to remove all the non-essential bits to provide a minimal reproduce scenario. |
So first, here's the plunk without the unused scripts: http://plnkr.co/edit/iF7wVs?p=preview I'm not aware of any changes that happend in 1.3-beta in |
@PascalPrecht there were a few changes to $interpolate, and there is possibly one more scheduled for 1.3. These are all pretty recent, the plnkr works just fine with 1.3-beta-5 |
The real exception is:
|
Well, actually the culprit is here: And the reason it breaks it that |
@pkozlowski-opensource how can we work around that? I think it has to be done here https://github.com/angular-translate/angular-translate/blob/master/src/service/default-interpolation.js#L88 |
Please see my comment, don't see this here right. angular-translate/angular-translate#521 (comment) edit: And I'm also too late. Sigh. |
546cb42 introduced a regression, which would cause the function returned from $interpolate to throw a ReferenceError if `context` is undefined. This change prevents the error from being thrown. Closes angular#7230
this basically fixes this afaik, I'll see if it gets an LGTM today. in the mean time, you might want to test it and see if it works for your use case |
Thanks for you help @caitp :) |
http://errors.angularjs.org/1.3.0-beta.6/$interpolate/interr?p0=%7B%7B%27Sign%20in%27%20%7C%20translate%7D%7D&p1=TypeError%3A%20Cannot%20read%20property%20%27%24id%27%20of%20undefined
See angular-translate/angular-translate#521 for more info
The text was updated successfully, but these errors were encountered: