Angular code wouldn't use any of these techniques:
- the use of Proxy() - calling compile(), - using a querySelector to bind elements - Manually wiring up click handlers
In that context, it's probably relevant to show this (assuming it's indicative of what Angular actually does -- of that I'm less sure)
Angular code wouldn't use any of these techniques:
But, I'm not sure that's what the author is trying to do -- I think they're trying to show what is going on under the hood, coded in pure JS.In that context, it's probably relevant to show this (assuming it's indicative of what Angular actually does -- of that I'm less sure)