DOM manipulation

In Angular 1.x, touching the DOM seemed mysterious; not like you couldn't, but somehow it comes back to bite you. This is ironic because what we do as web designers/developers is paint the DOM, and that cannot be possible without manipulating it.

With Angular 2+, it became quite easy to do this. Angular abstracts the DOM and gives you the shallow copy to mess around with. It's then responsible for putting it back without hurting anyone. It becomes even more interesting with TypeScript because your editor can hint most of the DOM property methods for you.

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.