This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Directive: working with html fragment in documentFragment instead of direct modifying DOM #13423
Closed
Description
I am very disappointed with the behavior of the angular when it works in a DOM tree.
It inserts and parses directives directly in the HTML, but does not use documentFragment.
Why it can't make something like this?
Directive => inserting innerHTML into documentFragment => doing usual things with it => finding inner directives => parse them => repeat, until all directives into this fragment will be resolved => insert ready-to-use fragment into real tree.
I think, that must be a flag, because some peoples uses templateUrl without caching in production, so there will be a white screen for a log time.
Thanks!