I love this, it's basically what I always hoped Ivy would enable.
However, I'm confused about how updates will work. I realize the syntax is nowhere close to final, but I'll use it as a reference for discussion.
In the example, if you used plain JavaScript expressions (`if`, `switch`, `for`, etc.) in your createView() call instead of `NgIf`, `NgSwitch`, `NgFor`, etc., wouldn't you have to destroy and recreate your view each time your context changed (expensive)? If you limited yourself to using the built-in structural directives instead then you could simply pass a new context to your embedded view, but I can imagine that devs familiar with React might assume that plain expressions would "just work" as they do in React, which might be a pain point.
If we do need to limit ourselves to using structural directives over plain expressions then it may be appropriate to provide some helper functions for the built-in stuff, so maybe instead of this:
[TRIPLE QUOTE]
You could do:
[TRIPLE QUOTE]
Of course, the community could build helper functions like that themselves. My main concern is that the way expressions restrict the ability to update a view may trip people up.
Thanks for sharing this openly! I'm excited for all the things a more dynamic Angular could bring.