2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Getting started 
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Welcome to Angular! Angular helps you build modern applications for the web, mobile, or desktop.  
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This guide shows you how to build and run a simple Angular
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								app. You'll use the [Angular CLI tool ](cli "CLI command reference" ) to accelerate development, 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								while adhering to the [Style Guide ](guide/styleguide "Angular style guide" ) recommendations that
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								benefit _every_  Angular project.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This guide takes less than 30 minutes to complete. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								At the end of this guide— as part of final code review— there is a link to download a copy of the final application code. (If you don't execute the commands in this guide, you can still download the final application code.)
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  devenv}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{@a  prerequisites}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Prerequisites 
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Before you begin, make sure your development environment includes `Node.js®`  and an npm package manager. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  nodejs}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### Node.js
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Angular requires `Node.js`  version 8.x or 10.x.
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  To check your version, run `node -v`  in a terminal/console window. 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  To get `Node.js` , go to [nodejs.org ](https://nodejs.org "Nodejs.org" ). 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  npm}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### npm package manager
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Angular, the Angular CLI, and Angular apps depend on features and functionality provided by libraries that are available as [npm packages ](https://docs.npmjs.com/getting-started/what-is-npm ). To download and install npm packages, you must have an npm package manager. 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This Quick Start uses the [npm client ](https://docs.npmjs.com/cli/install ) command line interface, which is installed with `Node.js`  by default. 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To check that you have the npm client installed, run `npm -v`  in a terminal/console window.
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  install-cli}
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Step 1: Install the Angular CLI
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You use the Angular CLI 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Install the Angular CLI globally. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To install the CLI using `npm` , open a terminal/console window and enter the following command:
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< code-example  language = "sh"  class = "code-shell" >  
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  npm install -g @angular/cli 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / code-example >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  create-proj}
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Step 2: Create a workspace and initial application
  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You develop apps in the context of an Angular [**workspace** ](guide/glossary#workspace ). A workspace contains the files for one or more [**projects** ](guide/glossary/#project ). A project is the set of files that comprise an app, a library, or end-to-end (e2e) tests. 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To create a new workspace and initial app project: 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								1.  Run the CLI command `ng new`  and provide the name `my-app` , as shown here:  
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < code-example  language = "sh"  class = "code-shell" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      ng new my-app
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < / code-example > 
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								2.  The `ng new`  command prompts you for information about features to include in the initial app project. Accept the defaults by pressing the Enter or Return key.  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The Angular CLI installs the necessary Angular npm packages and other dependencies. This can take a few minutes. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								It also creates the following workspace and starter project files: 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-30 15:02:03 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  A new workspace, with a root folder named `my-app`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  An initial skeleton app project, also called `my-app`  (in the `src`  subfolder) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  An end-to-end test project (in the `e2e`  subfolder) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  Related configuration files 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The initial app project contains a simple Welcome app, ready to run. 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  serve}
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Step 3: Serve the application
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Angular includes a server, so that you can easily build and serve your app locally.
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								1.  Go to the workspace folder (`my-app` ). 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.  Launch the server by using the CLI command `ng serve` , with the `--open`  option. 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< code-example  language = "sh"  class = "code-shell" >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  cd my-app
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  ng serve --open
							 
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< / code-example >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The `ng serve`  command launches the server, watches your files,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								and rebuilds the app as you make changes to those files.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The `--open`  (or just `-o` ) option automatically opens your browser
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								to `http://localhost:4200/` .
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Your app greets you with a message:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< figure >  
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  src = 'generated/images/guide/cli-quickstart/app-works.png'  alt = "Welcome to my-app!" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / figure >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  first-component}
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Step 4: Edit your first Angular component
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								[**_Components_** ](guide/glossary#component ) are the fundamental building blocks of Angular applications. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								They display data on the screen, listen for user input, and take action based on that input. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								As part of the initial app, the CLI created the first Angular component for you. It is the _root component_ , and it is named `app-root` . 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								1.  Open `./src/app/app.component.ts` .  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								2.  Change the `title`  property from `'my-app'`  to `'My First Angular App'` . 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-11 13:29:59 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < code-example  path = "cli-quickstart/src/app/app.component.ts"  region = "component"  header = "src/app/app.component.ts"  linenums = "false" > < / code-example > 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    The browser reloads automatically with the revised title. That's nice, but it could look better.
							 
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								3.  Open `./src/app/app.component.css`  and give the component some style. 
						 
					
						
							
								
									
										
										
										
											2017-03-31 12:23:16 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-11 13:29:59 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    < code-example  path = "cli-quickstart/src/app/app.component.css"  header = "src/app/app.component.css"  linenums = "false" > < / code-example > 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-31 12:23:16 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Looking good! 
							 
						 
					
						
							
								
									
										
										
										
											2017-03-31 12:23:16 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< figure >  
						 
					
						
							
								
									
										
										
										
											2018-09-05 07:45:00 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  src = 'generated/images/guide/cli-quickstart/my-first-app.png'  alt = "Output of Getting Started app" > 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / figure >  
						 
					
						
							
								
									
										
										
										
											2017-04-01 01:57:13 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-03-31 12:23:16 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{@a  project-file-review}
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Final code review
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can < a  href = "generated/zips/cli-quickstart/cli-quickstart.zip"  target = "_blank" > download an example< / a >  of the app that you created in this Getting Started guide. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = "alert is-helpful" >  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								**Tip:** Most Angular guides include links to download example files and run live examples in [Stackblitz ](http://www.stackblitz.com ), so that you can see Angular concepts and code in action. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-10 16:51:13 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / div >  
						 
					
						
							
								
									
										
										
										
											2017-03-30 21:01:15 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For more information about Angular project files and the file structure, see [Workspace and project file struture ](guide/file-structure ).
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Next steps
  
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Now that you've seen the essentials of an Angular app and the Angular CLI, continue with these other introductory materials: 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  The [Tour of Heroes tutorial ](tutorial "Tour of Heroes tutorial" ) provides additional hands-on learning. It walks you through the steps to build an app that helps a staffing agency manage a group of superhero employees.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								It has many of the features you'd expect to find in a data-driven application: 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        -  Acquiring and displaying a list of items
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        -  Editing a selected item's detail
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								        -  Navigating among different views of the data
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  The [Architecture guide ](guide/architecture "Architecture guide" ) describes key concepts such as modules, components, services, and dependency injection (DI). It provides a foundation for more in-depth guides about specific Angular concepts and features.   
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-24 16:45:42 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								After the Tutorial and Architecture guide, you'll be ready to continue exploring Angular on your own through the other guides and references in this documentation set, focusing on the features most important for your apps. 
							 
						 
					
						
							
								
									
										
										
										
											2017-06-09 17:48:53 -04:00