ποΈ Why Components
One of the main concepts in Angular is that your application is split into a tree of components. Each component represents a reusable piece of the UI that:
ποΈ Component Anatomy
In Angular, a component is a class decorated with the @Component decorator.
ποΈ Interpolation
Angular template interpolation ({{ ... }}) is the way of telling Angular to use data from the component class in the view.
ποΈ Property Binding
Property binding in Angular lets you set values for child elements' DOM properties or child Angular components inputs, using the [property] syntax.
ποΈ Event Binding
Event binding in Angular lets your components respond to user actions and browser events, using the (event) syntax.
ποΈ View Model
The mental model of Angular is the View Model. It's the bridge between your component's logic and the view.
ποΈ Conditionals
Property binding and Event binding are powerful mechanisms, but you will often need to branch between multiple options.
ποΈ Loops
You will often need to display lists β such as recipes or ingredients. Angularβs @for block is the declarative way to do that.
ποΈ Styling
Each Angular component can define its own styles, scoped to that component's template.