Angularjs Directive Removes All Content From Parent Div
I have custom directive declaration with replace set to true. When I place it in html with separate close tag:
Solution 1:
Depending on your doctype you might be giving the wrong meaning to the "closing" slash.
by default, yeoman generator and angular-seed use <!doctype html>
(html5)
In HTML 5, <foo />
means <foo>
. The slash is just syntactic sugar
Check this Are (non-void) self-closing tags valid in HTML5?
Depending on the browser implementation, it will add automatically a closing tag in one place or another, just like when you leave body
or strong
open and read the rendered code.
Post a Comment for "Angularjs Directive Removes All Content From Parent Div"