Created
May 20, 2014 14:14
-
-
Save hsuh/d47bc8ddaaed1dbc2f38 to your computer and use it in GitHub Desktop.
angular error: Error: $parse:isecdom Referencing a DOM node in Expression
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
To solve this write an explicit return for your coffeescript function. | |
"They've only disallowed accessing DOM nodes in expressions, not in directives. Your code is only broken because of Coffeescript's bad habit of automatically returning the last value in a function's scope. Angular detects that the function has returned a DOM node and throws an exception to keep you safe. Add an explicit "return" to the end of each of those functions and they should work fine." | |
discussion: https://groups.google.com/forum/#!topic/angular/bsTbZ86WAY4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment