A great way to learn AngularJS is to step through this tutorial, which will walk you through building a complete AngularJS web application. The web app is a directory listing of Android device inventories, and you can filter the list to see the devices you're interested in, and then view the device's details.
This tutorial will show you how AngularJS can make web applications smarter and more flexible without the need for various extensions or plug-ins. By following this tutorial, you will:
1. Read the example to learn how to use AngularJS's client-side data binding and dependency injection functions to create dynamic data views that can respond immediately to user operations.
2. Learn how to use AngularJS to create data listeners without DOM manipulation.
3. Learn a better, easier way to test your web applications.
4. Learn how to use AngularJS to create common web tasks, such as bringing data into your application more easily.
And all this can be achieved in any browser, no browser configuration required!
When you complete this tutorial, you will learn:
1. Create a dynamic application that works in any browser.
2. Understand the differences between AngularJS and other JavaScript frameworks.
3. Understand how AngularJS implements data binding.
4. Use AngularJS’s seed projects to quickly create your own projects.
5. Create and run tests.
6. Learn more AngularJS identity resources (API).
This tutorial will guide you through a simple application creation process, including writing and running unit tests, and continuously testing the application. Each step of the tutorial provides you with suggestions to learn more about AngularJS and the web applications you create. You may get through this tutorial quickly in a short amount of time, or you may spend a lot of time delving into it. For a brief introduction to AngularJS, check out the Getting Started documentation.
Building a learning environment
Whether you are in a Mac, Linux or Windows environment, you can follow this tutorial to learn programming. You can use the source code management version control system Git to obtain the source code files of this tutorial project, or directly download the image archive compressed package of the source code files of this tutorial project from the Internet.
1. You need to install Node.js and Testacular to run this project. Please go to the Node.js official website to download and install the latest version. Then add the node executable program path to the system environment variable PATH. After completion, run the command Run the command in the line to check whether the installation is successful:
Then install the Testacular unit test program, please run the following command:
2. Install the Git tool, and then use the following command to copy the source code file of this tutorial project from Github:
You can also directly download the image archive compressed package of the source code of this tutorial project from the Internet . This command will create a new folder angular-phonecat in your current folder.
3. The last thing to do is make sure your computer has a web browser and text editor installed.
4. Enter the tutorial source code file package angular-phonecat, run the server background program, and start learning AngularJS!