01 - Start: The starter files set up for use in VSCode, WebStorm, or other editors. Use this to code along with the course. (Updated for Angular 2 final)
فایل ها را می توانید در ویژوال استادیو کد یا دیگر ادیتورهای مورد علاقه استفاده کنید
02 - Final: The completed files. Use this to see the completed solution from the course. (Updated for Angular 2 final)
README.md file under each folder for details on installing and running the application.
If you have any problems installing or running this code, please see the "Angular 2: Getting Started Problem Solver"
If that does not resolve your issue, please post to the discussion board for the course
NOTE: The installation was tested using node v6.5.0 and npm 3.10.6.
This repository holds the TypeScript source code of the angular.io quickstart, the foundation for most of the documentation samples and potentially a good starting point for your application.
It's been extended with testing support so you can start writing tests immediately.
This is not the perfect arrangement for your application. It is not designed for production. It exists primarily to get you started quickly with learning and prototyping in Angular
We are unlikely to accept suggestions about how to grow this QuickStart into something it is not. Please keep that in mind before posting issues and PRs.
Prerequisites (پیش نیازات)
Node.js and npm are essential to Angular development.Get it now if it's not already installed on your machine.
Verify that you are running at least node
v4.x.x and npm
node -v and
npm -v in a terminal/console window.
Older versions produce errors.
We recommend nvm for managing multiple versions of node and npm.
Create a new project based on the QuickStart (ایجاد پروژه جدید)
Clone this repo into new project folder (e.g.,
git clone https://github.com/webnegar/Angular2 my-proj cd my-proj
Install npm packages (نصب پکیج ها)
See npm and nvm version notes above
Install the npm packages described in the
package.json and verify that it works:
npm install npm start
Doesn't work in Bash for Windows which does not support servers as of January, 2017.
npm start command first compiles the application,
then simultaneously re-compiles and runs the
Both the compiler and the server watch for file changes.
Shut it down manually with
You're ready to write your application.