Angular Tutorial 120 lessons · 2:23:08+ of video
Angular Home What Angular Is, Where Angular Is Used and How Angular Works
What Angular Is Where Angular Is Used How Angular Works What You Need, Creating a Project and The Project Structure
What You Need Creating a Project The Project Structure The Root Component, ng serve and Your First Change
The Root Component ng serve Your First Change Why TypeScript, Basic Types and Interfaces
Why TypeScript Basic Types Interfaces Classes, Optional and Union Types and Arrays and Generics
Classes Optional and Union Types Arrays and Generics Decorators, import and export and Practice: Typed Books
Decorators import and export Practice: Typed Books Components, Templates and Interpolation
Components Templates Interpolation Property Binding, Event Binding and ng generate component
Property Binding Event Binding ng generate component Using Components Together, Component Styles and Practice: A Book Card
Using Components Together Component Styles Practice: A Book Card What Signals Are, signal() and set() and update()
What Signals Are signal() set() and update() computed(), effect() and Signals with Arrays
computed() effect() Signals with Arrays Signals with Objects, linkedSignal() and Practice: A Counter and a Basket
Signals with Objects linkedSignal() Practice: A Counter and a Basket @if, @else and @else if and @for
@if @else and @else if @for track, @empty and @switch
track @empty @switch @let, Class and Style Bindings and Practice: A Book List
@let Class and Style Bindings Practice: A Book List Parent and Child, input() and Required Inputs and Defaults
Parent and Child input() Required Inputs and Defaults output(), Sending Data Up and model() for Two-Way Binding
output() Sending Data Up model() for Two-Way Binding Content Projection, Building a Small Component Tree and Practice: A Star Rating
Content Projection Building a Small Component Tree Practice: A Star Rating Pipes, Built-in Pipes and Pipe Arguments
Pipes Built-in Pipes Pipe Arguments Custom Pipes, Directives and Custom Attribute Directives
Custom Pipes Directives Custom Attribute Directives host Listeners, Template Reference Variables and Practice: A Price List
host Listeners Template Reference Variables Practice: A Price List Why Services, Creating a Service and inject()
Why Services Creating a Service inject() @Service and @Injectable, Sharing State in a Service and Signals in Services
@Service and @Injectable Sharing State in a Service Signals in Services Providers, Injection Tokens and Practice: A Wishlist Service
Providers Injection Tokens Practice: A Wishlist Service What Routing Is, Routes and router-outlet and routerLink
What Routing Is Routes and router-outlet routerLink Route Parameters, Navigating in Code and Redirects and Not Found
Route Parameters Navigating in Code Redirects and Not Found Lazy Loading, Route Guards and Practice: Book Pages
Lazy Loading Route Guards Practice: Book Pages Forms in Angular, Template-Driven Forms and Reactive Forms
Forms in Angular Template-Driven Forms Reactive Forms FormGroup, Validators and Showing Errors
FormGroup Validators Showing Errors Signal Forms, Custom Validators and Practice: A Signup Form
Signal Forms Custom Validators Practice: A Signup Form Talking to a Server, HttpClient and GET Requests
Talking to a Server HttpClient GET Requests Observables Basics, POST, PUT and DELETE and Loading and Errors
Observables Basics POST, PUT and DELETE Loading and Errors httpResource, Interceptors and Practice: A Books Client
httpResource Interceptors Practice: A Books Client RxJS Basics, map and filter and Search with debounceTime
RxJS Basics map and filter Search with debounceTime toSignal(), Why Test and Testing a Component
toSignal() Why Test Testing a Component Testing a Service, Testing User Actions and Practice: Test the Basket
Testing a Service Testing User Actions Practice: Test the Basket Building for Production, @defer and Deploying
Building for Production @defer Deploying Project: The Plan, Models and Service and The Book List
Project: The Plan Project: Models and Service Project: The Book List Project: The Book Page, The Basket and Checkout Form
Project: The Book Page Project: The Basket Project: Checkout Form Project: Tests, Where to Go Next and Course Recap
Project: Tests Where to Go Next Course Recap Angular · Lesson 5 of 120
Creating a Project Ng new.
⏱ 2 min read ▶ Video at 5:06 🎓 Free
▶ starts at 5:06 The Angular CLI creates a complete, working project for us, with one command. Every file is ready, so we can start coding straight away.
One command A complete project Start coding ng new asks a few questions, like which style sheet format to use. It creates the project folder, with all the files. Then npm installs the packages the project needs. And the project is ready to run.
ng new shop
A few questions
Creates the files
npm install
Ready to run
We create a project called shop. We answer the questions with options, plain CSS, and no server side rendering. The CLI creates about twenty files. The skip install option leaves the package install for the next step.
Terminal Copy commands
ng new shop --style=css --ssr=false --skip-install --ai-config=none
CREATE shop/.prettierrc (161 bytes)
CREATE shop/README.md (1457 bytes)
CREATE shop/.editorconfig (314 bytes)
CREATE shop/.gitignore (622 bytes)
CREATE shop/angular.json (1897 bytes)
CREATE shop/package.json (780 bytes)
CREATE shop/tsconfig.json (908 bytes)
CREATE shop/tsconfig.app.json (398 bytes)
CREATE shop/tsconfig.spec.json (409 bytes)
CREATE shop/.vscode/extensions.json (130 bytes)
CREATE shop/.vscode/launch.json (470 bytes)
CREATE shop/.vscode/tasks.json (978 bytes)
CREATE shop/src/main.ts (222 bytes)
CREATE shop/src/index.html (290 bytes)
CREATE shop/src/styles.css (80 bytes)
CREATE shop/src/app/app.css (0 bytes)
CREATE shop/src/app/app.spec.ts (678 bytes)
CREATE shop/src/app/app.ts (287 bytes)
CREATE shop/src/app/app.html (20144 bytes)
CREATE shop/src/app/app.config.ts (312 bytes)
CREATE shop/src/app/app.routes.ts (77 bytes)
CREATE shop/public/favicon.ico (15086 bytes)
Successfully initialized git.
Prefer to watch? The full Angular course is free All lessons in one video with animations, real code and chapters.
Watch free We move into the new folder. Then npm install downloads Angular, and everything it needs, into node modules. It takes a little while, the first time.
Terminal Copy commands
cd shop
npm install
added 288 packages, and audited 289 packages in 6s
89 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
ng new creates a complete project, and npm install adds its packages. Next, a tour of the files it created.
Key takeaways ng new shop --style=css npm install