Implementing Design Patterns and Creating Web Components
Web components are the latest trend, and they are a very interesting resource because they bring web development “to the next level.” They allow us to use the MVC pattern (Model-View-Controller) in a more natural and coherent way and allow us to encapsulate and reuse functionality.
In this chapter we will see what web components are, what the Shadow DOM is, and how the Shadow DOM can be used to create web components. Later we will see how to use these functionalities in Dart thanks to the Polymer.dart library. We will also develop a full example to show you the power of web components ...