How to setup the environment for Angular 2.0?

前端 未结 4 715
-上瘾入骨i
-上瘾入骨i 2020-12-04 04:05

Taking my initial steps towards Angular 2.0.

First thing is to set up the right environment for the development.

My index.html



        
相关标签:
4条回答
  • 2020-12-04 04:28

    If you are already using Visual Studio Code as an IDE, you may want to explore how they recommend setting up Angular. I personally found their installation guide painless and feature-rich. I have never walked through an official Angular installation before due to being drenched in jQuery projects. This guide was simple enough to give me a good beginners understanding.

    0 讨论(0)
  • 2020-12-04 04:35

    You have angular-cli wich is a good starter point. It will set you everything up according to best practices.

    0 讨论(0)
  • 2020-12-04 04:39

    npm install in the root project (it will create your node_modules from the dependencies mentioned in package.json file, should have those files as a start)

    0 讨论(0)
  • 2020-12-04 04:49

    Simple way to set up your first Angular 2 Application.

    1. Download the zip version here.firstAngular2App

    2. Extract it to your destination folder. Assume D:

    3. Open your command prompt(ensure that all required softwares are installed).

    4. Navigate it to the folder. Use the command cd D:\firstAngular2App

    5. Executre npm install

    6. Once it is done use npm start

    This way you have your first Angular2 appliction up and running.

    0 讨论(0)
提交回复
热议问题