Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, these aren't representative examples of how you would use Angular.

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
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)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: