With component-based design, we work differently. We start by looking at the UI and expected behavior, and then we encapsulate all of this into a building block that we call a component. This component is then hosted on our page. Within the component, we separate the UI into a view and the behavior into a class, with the appropriate properties and methods needed to support the behavior. If you are not familiar with classes, don't worry. We'll be discussing what they are in detail as we move through the example.
- The customary Hello Angular app - Guess the Number!
- from Angular 2 By Example
- Publisher: Packt Publishing
- Released: November 2016
Share this highlighthttp://www.safaribooksonline.com/a/angular-2-by/5261712/