Question · Angular course · Module 2: Components
The Three Parts of a Component
Which three main parts does an Angular component consist of?
Answer options
- The @Component decorator, the component class and the template
- A service, a controller and a view
- A model, a router and a store
- A function, a hook and a reducer
Show the answer
Correct answer:
- The @Component decorator, the component class and the template