0

I have been learning angular2 from past two days. I would like to know how to configure my project to work around with angular2 & typescript. I'm using VS 2015. Please let me know the steps for setting up the environment.

1
  • 1
    I am a big fan of VS 2015. Having said that, however, I prefer to develop angular2 apps with Visual Studio Code. With VS Code, I install nothing related to .net and use lite-server for development. All backend stuff I do with ASP.NET web api but with a separate project (that the angular app calls via http cross domain request). I don't know if this is "proper" but it works great for me. Commented Jun 7, 2016 at 20:26

2 Answers 2

3

Best way to setup angular2 project now a days is by using Angular CLI

also there are alot of ways by using you can setup your project. its totaly depends on you and your requirement that how you want to configure your project setup. see here also angular2 setup using gulp

https://github.com/MrPardeep/Angular2-DatePicker

Before setup your project i must recomend to you go through this article

Update

as required by @sujay in comment here is some info related to required files:-

  • package.json :- Holds all the dependenices list which is being used in project
  • tsconfig.json :- The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file specifies the root files and the compiler options required to compile the project
  • system.config.js :- Hold all the configuration for the project startup, here we write entry point/file for our project.
Sign up to request clarification or add additional context in comments.

3 Comments

Should I add all those Json files mentioned in QuickStart ?
Yes you should have to import all those json file to make project run, there are diff diff functionality for every json file. wait for a moment ill update my answer with some description related to these files.
Hey @Pradeep Jain , I see that systemjs.config.json should be included to get started with the project. But I'm trying to install systemjs using npm. It's not working.it's throwing error. Is there any potential fix for this !
1

Add angular2 via NPM package manager and typescript files should already be available in the right click add menu

2 Comments

I wouldn't recommend adding it as a NuGet package. They're not updated at the same speed as the library. NPM is a better alternative.
Your probably right, I'm not totally fluent in all these fancy new package managers yet. Updated answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.