Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

improve $interpolate error messaging #832

Closed
IgorMinar opened this issue Mar 27, 2012 · 3 comments
Closed

improve $interpolate error messaging #832

IgorMinar opened this issue Mar 27, 2012 · 3 comments

Comments

@IgorMinar
Copy link
Contributor

See: http://jsfiddle.net/IgorMinar/CHVbb/285/

  • the template looks partially uncompiled
  • the error message in the console doesn't reference the origin of the error in the template
@btford
Copy link
Contributor

btford commented Jul 19, 2012

Do you think something should be done in the template? Maybe expose some method on $interpolate that allows users too define what should be interpolated on an exception, with the default being the un-interpolated string?

@IgorMinar
Copy link
Contributor Author

I think that we should just make it an empty string. The reason for that is that if the error is transitive, then on the next digest the interpolation will properly work. check out this demo: http://jsfiddle.net/CHVbb/752/ (try to replace == 'xxx' with != 'xxx')

@IgorMinar
Copy link
Contributor Author

closed by d804bbc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants