sujay kodamala
sujay kodamala

Reputation: 317

proper way to configure asp.net web app to work with angular2 and typescript

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.

Upvotes: 0

Views: 97

Answers (2)

Pardeep Jain
Pardeep Jain

Reputation: 86730

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.

Upvotes: 3

Paul Swetz
Paul Swetz

Reputation: 2254

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

Upvotes: 1

Related Questions