# Introduction to Angular

Angular builds the whole page in the browser from components. You will create an Angular app, write standalone components and templates, bind data and events, and hold state in signals.

Updated: November 14, 2026

## [Creating an Angular App](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/creating-an-angular-app)

1. [Creating an Angular App: an overview](https://www.ask-codey.com/lessons/creating-an-angular-app-an-overview) (Novice): Angular is Google's framework for single-page apps. The browser loads one page and one app, and Angular builds and rebuilds the page from components, getting its data from APIs. It's written in TypeScript, and created and run with the Angular CLI.
2. [Installing the Angular CLI](https://www.ask-codey.com/lessons/creating-an-angular-app-installing-the-angular-cli) (Novice): Install the Angular CLI once with npm install -g @angular/cli, create an app with ng new, and run it with ng serve, which rebuilds and reloads the browser whenever you save. Add packages such as Bootstrap with npm install.
3. [Project Structure](https://www.ask-codey.com/lessons/creating-an-angular-app-project-structure) (Novice): An Angular project starts at src/main.ts, which starts the App component with the settings in app.config.ts. index.html holds the &lt;app-root> tag that App fills. Your code lives in src/app; angular.json and package.json configure the build.

## [Angular Components](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/angular-components)

1. [Angular Components: an overview](https://www.ask-codey.com/lessons/angular-components-an-overview) (Novice): An Angular app is a tree of components. Each component is a small, reusable piece of the page, made of a TypeScript class for its data and behavior, an HTML template for how it looks, and its own styles.
2. [The Structure of a Component](https://www.ask-codey.com/lessons/angular-components-the-structure-of-a-component) (Novice): A component is a TypeScript class marked with @Component, which gives its selector, template and styles. Generate one with ng generate component, and use it in another component by adding it to that component's imports and writing its selector as a tag.
3. [Templates and Interpolation](https://www.ask-codey.com/lessons/angular-components-templates-and-interpolation) (Novice): Double braces in a template, {{ like this }}, show a value from the component's class. They can hold any simple expression, and a pipe after a | formats it, such as uppercase, currency or date, once the pipe is imported.

## [Binding and Events in Angular](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/binding-and-events-in-angular)

1. [Property Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-property-binding) (Apprentice): Square brackets bind an element's property to the component's data, such as \[src\]="imageUrl" or \[disabled\]="soldOut". \[class.name\] turns a CSS class on and off, and \[style.prop\] sets one style, all kept up to date by Angular.
2. [Event Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-event-binding) (Apprentice): Parentheses bind an event to a method of the component, such as (click)="addToCart()". $event passes the event itself, a template reference variable such as #box passes an element, and (keyup.enter) listens for one key.
3. [Two-Way Binding](https://www.ask-codey.com/lessons/binding-and-events-in-angular-two-way-binding) (Apprentice): \[(ngModel)\] binds a form field both ways: the field shows the signal's value, and typing in the field changes the signal. Import FormsModule to use it. Brackets in and parentheses out, together: the banana in a box.
4. [@if and @for](https://www.ask-codey.com/lessons/binding-and-events-in-angular-if-and-for) (Apprentice): @if shows part of a template only when a condition is true, with @else for the other case. @for repeats part of a template for each item of a list, with track to tell the items apart, and @empty for an empty list.

## [State with Signals](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/state-with-signals)

1. [Signals and computed](https://www.ask-codey.com/lessons/state-with-signals-signals-and-computed) (Apprentice): A signal holds a value that changes, and tells Angular when it does, so the page always shows the latest. Read it by calling it, change it with set or update, and derive values from signals with computed, which recalculates by itself.

## [Exercise: Shopping List in Angular](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/exercise-shopping-list-in-angular)

1. [Exercise: Shopping List in Angular](https://www.ask-codey.com/lessons/exercise-shopping-list-in-angular) (Apprentice): Build the shopping list again, in Angular. Hold the items in a signal, work out the count with computed, bind the box with ngModel, draw the list with @for and @if, and let ten tests check it the way a person would use it.

Source: https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/chapters/introduction-to-angular
