angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

HTML tag broke ngCloak

Open itsverygood opened this issue 12 years ago • 2 comments

I tried to add HTML tag into ngCloak. It break the format. You can see the error from http://plnkr.co/edit/LsDEWmltwNU0m7b8FXve?p=preview

itsverygood avatar Jun 12 '14 19:06 itsverygood

This is incorrect. You can't drop HTML into your interpolation string as far as I know.

thebigredgeek avatar Jun 24 '14 04:06 thebigredgeek

you can, but not for text node interpolation, only attribute interpolation (http://jsfiddle.net/Rrabr/) but some html parsers might get that wrong (in a text node, you'll end up with [TEXT_NODE="{{'", ELEMENT_NODE="<h1>hello</h1>", TEXT_NODE="'}}"])

caitp avatar Jun 24 '14 04:06 caitp