
Set up the Angular CLI, verify Node and CLI versions, locate and install the Angular CLI, and confirm a successful test run while identifying essential CLI resources.
Verify the node version for the Angular CLI by checking it in the command prompt, ensuring it is equal to or higher than 6.9 before proceeding.
Install Angular CLI globally with npm install -g @angular/cli, which pulls the CLI and its dependencies from npm, then verify versions with ng -v showing CLI, node, and operating system.
Install the Angular CLI globally with npm. Verify the installation by checking versions with npm list -g @angular/cli and ng -v, ensuring the CLI is ready to use.
Explore how to create a new Angular app with the CLI, using ng new with skip-install, review the project structure, and open the app in Visual Studio Code.
Generate a new Angular app with ng new, explore flags such as --dry-run and --skip-install, and preview files using ng new --help.
Learn to scaffold an Angular CLI app using ng new MyApp --dry-run to preview files, then run without dry-run with skip install, and review package.json scripts and dependencies.
Understand angular-cli.json configuration file, including project name, dist output, assets, index.html, main.ts, and tsconfig, and learn to customize the prefix affecting selectors with ng new flags like --prefix and --routing.
Learn how the Angular CLI linting checks TypeScript code with ng lint, use --format stylish and --fix to colorize and auto-correct errors, and see common issues during a demo.
Explore how to generate code with Angular CLI blueprints using ng generate, defining file types, names, and options, and performing dry runs for components, services, and models.
Learn to generate angular components quickly with the cli using ng g c or ng generate component, applying aliases and options like --flat, -it, -is, and --spec.
The CLI updates app.module.ts by importing and declaring components in an ng module, and you compare dry run with git source control to see exact line changes.
Generate an angular directive with ng g d exam -d, preview with a dry run, commit changes in git, and update the app module, using --flat false for a folder.
Generate angular services with the cli and create tuition and tuition2 services. Import and provide them in app.module, manually when needed or automatically with -m app.module.
Generate pipes with the Angular CLI, perform a dry run, organize in a shared folder, then declare and import the pipe in the app module using -m for another module.
Generate modules and components with the Angular CLI: ng g m (modules with dry-run/specs), ng g c (components), then import the module in app module.
Explore how to add routing features to Angular modules using the CLI, generate routing guards, and compare manual versus CLI-driven routing to see concrete routing in components.
Create an Angular app with routing by generating a project with --routing, configuring the app routing module, and adding Office and Employee components with routes and routerLink.
Demonstrates creating an admin module with routing via the Angular CLI, adding admin, email, and users components, wiring admin routing into the app module, and using router-outlet for navigation.
Learn how to build and serve Angular apps for development and production using the Angular CLI, explore build targets and outputs, and understand webpack's role.
Learn how the Angular CLI builds apps using ng build, producing bundles in dist with dev and prod options, tree shaking, uglification, and source maps.
Explore how Angular builds produce dist files and in-memory bundles, inspect vendor and main bundles, and use source-map-explorer to identify optimization opportunities to reduce bundle size.
Explore how to optimize angular apps by building with aot and production settings, shrinking the vendor bundle through a prod build with aot, uglification, and treeshaking, and understanding source maps.
Learn how ng serve runs in memory via webpack, avoiding the dist folder for fast live reload, with options like -o, --port, SSL, and proxy config to tailor development.
Explore ng serve options to serve an Angular app, including custom ports and auto-opening the browser, and learn how to enable live reload or run production builds locally.
Learn how to eject from the Angular CLI to expose and customize the Webpack configuration, use npm start with the Webpack dev server, and regain CLI control.
Learn to include custom scripts, styles, and assets in an Angular app by configuring angular-cli.json, adding files like mystyles.css, and managing assets for the build and delivery.
Discover how the Angular CLI runs unit tests with Karma, auto-reloads on file changes, and executes end-to-end tests with Protractor, along with essential CLI options.
Discover how Angular CLI generates spec tests, run and watch them with ng test, and isolate component and service functions to prevent regressions.
Demystify unit testing in Angular by running ng test, isolating components with no dependencies, using a no-errors schema to handle router outlets, and interpreting Karma specs and re-runs.
Explore how to run tests with the Angular CLI, including enabling code coverage, color output, and source maps, and choosing between continuous testing and a single test cycle using Karma.
Demonstrates using Angular CLI to run code coverage with ng test -sr -cc, read coverage reports, and see how a users component affects statements, branches, lines, and functions.
Explore end to end testing by simulating user interactions to observe app behavior. Use ng e2e with protractor, including -ee, -c, -s false, and -sp to run and inspect tests.
Learn end-to-end testing with angular cli by configuring protractor, the e2e folder, and page objects, then run ng e2e to verify the app displays the welcome message.
Throughout this course, you will be learning what Angular CLI is and why it was introduced in the first place. The command line interface that is provided by the Angular team will help you to generate your Angular applications more effectively than ever. You will be learning everything related to the CLI, from generating a new app to adding components, services, routing features and a lot more. You will learn how to build and serve your app quickly with the help of CLI. At the end of this course, you will take away the power to ease your solution making skills.