Mastering Angular Components
上QQ阅读APP看书,第一时间看更新

Recap

Let's look at what we did in the previous building block. We achieved a simple listing of tasks within an encapsulated component by following these steps:

  1. We created the component TypeScript file that contains the logic of our component
  2. We created the component's view within a separate HTML file
  3. We included the component HTML element within our main application view template