@ngdoc overview
@name Tutorial
@description
A great way to get introduced to angular is to work through this tutorial, which walks you through
the construction of an angular web app. The app you will build is a catalog that displays a list of
Android devices, lets you filter the list to see only devices that interest you, and then view
details for any device.
Verify that you have Java installed by running the
following command in a terminal window: You will need Java to run unit tests. Get Git from here You can build it from source or use pre-compiled package. Clone the angular-phonecat repository located at Github by running this command: This will create Change your current directory to The tutorial instructions assume you are running all commands from this directory. You'll also need an http server running on your system. Mac and Linux machines
typically have Apache preinstalled. If you don't already have an http server installed, you can install
node.js and use it to run Verify that you have Java installed and that the
You will need Java to run unit tests. Install msysGit from here Open msysGit bash and clone the angular-phonecat repository located at Github by running this command: This will create angular-phonecat directory in your current directory. Change your current directory to angular-phonecat: The tutorial instructions assume you are running all commands from this directory. You should run all Other commands like You'll also need an http server running on your system. If you don't already have an http server installed, you can install node.js. Just download pre-compiled binaries, unzip them and add
Verify that you have Java installed by running the
following command in a terminal window: You will need Java to run unit tests. Download the zip archive
with all files and unzip them into [tutorial-dir] directory Change your current directory to [tutorial-dir]/sanbox: The tutorial instructions assume you are running all commands from this directory. You'll also need an http server running on your system. Mac and Linux machines
typically have Apache preinstalled. If you don't already have an http server installed, you can install
node.js and use it to run Verify that you have Java installed and that the
You will need Java to run unit tests. Download the zip archive
with all files and unzip them into [tutorial-dir] directory Change your current directory to [tutorial-dir]/sanbox: The tutorial instructions assume you are running all commands from this directory. You'll also need an http server running on your system. If you don't already have an http server installed, you can install node.js. Just download pre-compiled binaries, unzip them and add
As you work through this tutorial, you will learn how angular makes browsers smarter — without the
use of extensions or plugins.
* You will see examples of how to use client-side data binding and dependency injection to build
dynamic views of data that change immediately in response to user actions.
* You will see how angular creates listeners on your data without the need for DOM manipulation.
* You will learn a better, easier way to test your web apps.
* You will learn how to use angular services to make common web tasks, such as getting data into
your app, easier.
And all of this works in any browser without modifications!
When you finish the tutorial you will be able to:
* Create a dynamic application that works in any browser
* Define the differences between angular and common JavaScript frameworks
* Understand how data binding works in angular
* Use the angular-seed project to quickly boot-strap your own projects
* Create and run tests
* Identify resources for learning more about angular
The tutorial is will guide you through the process of building a simple application, including
writing and running unit and end-to-end tests, and will allow you to experiment with angular and
the application through experiments suggested at the end of each step.
You can go through the whole tutorial in a couple of hours or you may want to spend a pleasant day
really digging into it. If you're looking for a shorter introduction to angular, check out the
{@link misc/started Getting Started} document.
# Working with the code
There are two ways that you can you follow this tutorial and hack on the code, both available on
Mac/Linux or Windows environment. The first work flow uses Git versioning system for source code
management, the second work flow doesn't depend on any source control system and instead uses
scripts to copy snapshots of project files into your workspace (`sandbox`) directory. Choose the
one you prefer:
java -versiongit clone git://github.com/angular/angular-phonecat.gitangular-phonecat directory in current directory.angular-phonecat:cd angular-phonecatscripts/web-server.js — a simple bundled http
server.
java executable is on your PATH by running this command in windows
command line:java -versiongit clone git://github.com/angular/angular-phonecat.gitcd angular-phonecatgit commands from msysGit bash.test-server.bat or test.bat that will be
introduced soon, should be executed from the windows command line.nodejs\bin into your PATH and use node to run
scripts\web-server.js — a simple bundled http server.
java -versioncd [tutorial-dir]/sandboxscripts/web-server.js — a simple bundled http
server.
java executable is on your PATH by running this command in windows
command line:java -versioncd [tutorial-dir]/sandboxnodejs\bin into your PATH and use node to run
scripts\web-server.js — a simple bundled http server.