Meta tags:
description= The web development framework for building modern apps.;
author= Angular Team;
keywords= Angular framework, TypeScript, web development, hydration, Signals, standalone components, accessibility, performance;
Headings (most frequently used words):
the, and, local, workspace, angular, application, community, npm, pnpm, yarn, bun, setting, up, environment, on, this, page, before, you, start, dependencies, install, cli, create, initial, run, workspaces, project, files, next, steps, social, media, resources, translations, try, without, setup, powershell, execution, policy, unix, permissions,
Text of the page (most frequently used words):
the (53), #angular (45), and (32), cli (27), new (20), you (16), workspace (15), with (13), command (13), your (12), install (12), #application (11), for (9), app (9), run (8), npm (8), set (7), files (6), local (6), google (5), generate (5), add (5), commands (5), root (5), build (5), this (5), sudo (5), execution (5), developer (4), end (4), make (4), components (4), generated (4), using (4), which (4), create (4), libraries (4), initial (4), browser (4), server (4), development (4), following (4), bun (4), global (4), yarn (4), pnpm (4), node (4), tools (4), environment (4), setup (4), code (3), v22 (3), directives (3), more (3), about (3), can (3), use (3), must (3), directory (3), open (3), serve (3), apps (3), scripts (3), may (3), policy (3), powershell (3), guide (3), start (3), schematics (3), updated (3), licensed (2), under (2), style (2), community (2), youtube (2), deploy (2), like (2), pipes (2), test (2), additional (2), such (2), applications (2), executed (2), will (2), outside (2), contains (2), template (2), folder (2), that (2), its (2), creates (2), when (2), default (2), http (2), well (2), includes (2), locally (2), name (2), ready (2), dependencies (2), starter (2), prompts (2), include (2), sure (2), understand (2), implications (2), running (2), unix (2), user (2), above (2), fail (2), error (2), setting (2), executionpolicy (2), client (2), version (2), information (2), lts (2), system (2), need (2), javascript (2), should (2), familiar (2), essentials (2), try (2), aot (2), errors (2), testing (2), workers (2), service (2), animations (2), release (2), docs (2), menu (2), super, powered, 2010, 2026, documentation, built, sha, ff0068a, mit, license, 正體中文版, 简体中文版, 日本語版, 한국어, русский, türkçe, oʻzbekcha, français, español, azərbaycanca, translations, roadmap, press, kit, resources, experts, devlibrary, report, issues, conduct, contribute, stack, overflow, github, discord, bluesky, formerly, twitter, blog, social, media, tests, e2e, available, real, users, boilerplate, learn, configuration, file, structure, next, steps, edit, directly, modify, them, services, operate, from, within, contrast, because, they, one, newly, source, component, each, has, data, assets, src, generates, inside, contain, multiple, created, library, existing, goes, into, subfolder, projects, workspaces, project, just, option, automatically, opens, view, localhost, 4200, launches, watches, rebuilds, reloads, changes, those, small, welcome, same, navigate, subsequent, installs, necessary, packages, other, take, few, minutes, provide, shown, here, then, answer, features, develop, context, some, setups, owned, permission, execute, enter, password, prompted, permissions, carefully, read, message, displayed, after, executing, follow, instructions, remotesigned, currentuser, scope, windows, computers, disabled, allow, needed, binaries, terminal, window, requires, see, compatibility, active, maintenance, download, uses, associated, package, manager, also, usage, line, interface, have, general, understanding, shells, knowledge, helpful, but, not, required, typescript, css, html, before, back, top, arrow_upward_alt, page, are, might, want, introduces, standalone, tutorial, takes, advantage, interactive, online, don, until, stackblitz, now, without, explains, how, installing, creating, verify, metadata, ahead, time, compilation, type, checking, authoring, generating, builders, environments, migrating, deployment, serving, building, overview, arrow_back, material, cdk, player, pay, maps, fire, tailwind, custom, pipeline, web, pwas, rxjs, legacy, ngmodules, extended, ecosystem, v21, events, keeping, date, performance, unhandled, accessibility, security, best, practices, language, devtools, webmcp, design, patterns, tutor, mcp, agent, skills, llm, ide, get, started, drag, drop, internationalization, aria, side, hybrid, rendering, forms, routing, dependency, injection, templates, signals, depth, guides, coding, installation, what, introduction, more_horiz, reference, playground, tutorials, close, skip, main, content,
Text of the page (random words):
local set up angular skip to main content menu close v22 k docs tutorials playground reference more_horiz menu docs introduction what is angular installation essentials start coding in depth guides signals updated components templates directives dependency injection updated routing forms updated http client server side hybrid rendering testing angular aria new internationalization animations drag and drop build with ai get started llm prompts and ai ide setup agent skills new angular cli mcp server setup angular ai tutor design patterns webmcp new developer tools angular cli libraries devtools language service best practices style guide security accessibility unhandled errors in angular performance keeping up to date developer events angular v22 release new angular v21 release extended ecosystem ngmodules legacy animations using rxjs with angular service workers pwas web workers custom build pipeline tailwind angular fire google maps google pay youtube player angular cdk angular material arrow_back angular cli overview local set up building angular apps serving angular apps for development deployment end to end testing migrating to new build system build environments angular cli builders generating code using schematics authoring schematics schematics for libraries template type checking ahead of time aot compilation aot metadata errors developer tools angular cli setting up the local environment and workspace this guide explains how to set up your environment for angular development using the angular cli it includes information about installing the cli creating an initial workspace and starter app and running that app locally to verify your setup try angular without local setup if you are new to angular you might want to start with try it now which introduces the essentials of angular in your browser this standalone tutorial takes advantage of the interactive stackblitz environment for online development you don t need to set up your local environment until you re ready on this page arrow_upward_alt back to the top before you start to use angular cli you should be familiar with the following javascript html css you should also be familiar with usage of command line interface cli tools and have a general understanding of command shells knowledge of typescript is helpful but not required dependencies to install angular cli on your local system you need to install node js angular cli uses node and its associated package manager npm to install and run javascript tools outside the browser download and install node js which will include the npm cli as well angular requires an active lts or maintenance lts version of node js see angular s version compatibility guide for more information install the angular cli to install the angular cli open a terminal window and run the following command npm npm install g angular cli pnpm pnpm install g angular cli yarn yarn global add angular cli bun bun install g angular cli powershell execution policy on windows client computers the execution of powershell scripts is disabled by default so the above command may fail with an error to allow the execution of powershell scripts which is needed for npm global binaries you must set the following execution policy set executionpolicy scope currentuser executionpolicy remotesigned carefully read the message displayed after executing the command and follow the instructions make sure you understand the implications of setting an execution policy unix permissions on some unix like setups global scripts may be owned by the root user so to the above command may fail with a permission error run with sudo to execute the command as the root user and enter your password when prompted npm sudo npm install g angular cli pnpm sudo pnpm install g angular cli yarn sudo yarn global add angular cli bun sudo bun install g angular cli make sure you understand the implications of running commands as root create a workspace and initial application you develop apps in the context of an angular workspace to create a new workspace and initial starter app run the cli command ng new and provide the name my app as shown here then answer prompts about features to include ng new my app the angular cli installs the necessary angular npm packages and other dependencies this can take a few minutes the cli creates a new workspace and a small welcome app in a new directory with the same name as the workspace ready to run navigate to the new directory so subsequent commands use this workspace cd my app run the application the angular cli includes a development server for you to build and serve your app locally run the following command ng serve open the ng serve command launches the server watches your files as well as rebuilds the app and reloads the browser as you make changes to those files the open or just o option automatically opens your browser to http localhost 4200 to view the generated application workspaces and project files the ng new command creates an angular workspace folder and generates a new application inside it a workspace can contain multiple applications and libraries the initial application created by the ng new command is at the root directory of the workspace when you generate an additional application or library in an existing workspace it goes into a projects subfolder by default a newly generated application contains the source files for a root component and template each application has a src folder that contains its components data and assets you can edit the generated files directly or add to and modify them using cli commands use the ng generate command to add new files for additional components directives pipes services and more commands such as ng add and ng generate which create or operate on applications and libraries must be executed from within a workspace by contrast commands such as ng new must be executed outside a workspace because they will create a new one next steps learn more about the file structure and configuration of the generated workspace test your new application with ng test generate boilerplate like components directives and pipes with ng generate deploy your new application and make it available to real users with ng deploy set up and run end to end tests of your application with ng e2e social media blog x formerly twitter bluesky youtube discord github stack overflow community contribute code of conduct report issues google s devlibrary angular google developer experts resources press kit roadmap community translations azərbaycanca español français oʻzbekcha türkçe русский 한국어 日本語版 简体中文版 正體中文版 super powered by google 2010 2026 code licensed under an mit style license documentation licensed under cc by 4 0 built by angular at v22 2 6 sha ff0068a
|