Is it the future? and are we there yet?

Image for post
Image for post

No doubt, view encapsulation is one of the great features of Angular. Anyone who has worked on a large web project knows that trying to come up with names for CSS selectors and nesting them to avoid collisions is a huge headache, not to mention finding and editing them. Angular solves this problem with ViewEncapsulation. Component files are conveniently placed next to each other, a unique attribute (e.g [_ngcontent-hef-c18]) is added to every element in a component.html file, and the same attribute to each rule in the component.css file. Then Angular…

Gidon Handler

Developer at HP (HP Indigo)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store