Learn how to write templates that display data and consume user events with the help of data binding.
データを表示するテンプレートを作成し、データバインディングの助けを借りて、ユーザーイベントを利用する方法を学びます。
Our Angular application manages what the user sees and does through the interaction of a Component class instance (the component) and its user-facing template. Many of us are familiar with the component/template duality from our experience with model-view-controller (MVC) or model-view-viewmodel (MVVM). In Angular, the component plays the part of the controller/viewmodel, and the template represents the view. Let’s find out what it takes to write a template for our view. We’ll cover these basic elements of template syntax: