How can I open angular2 and TypeScript project in visual studio without npm/nodejs. I need to open the project in computer without network.
thank you
How can I open angular2 and TypeScript project in visual studio without npm/nodejs. I need to open the project in computer without network.
thank you
In VS create new project -> TypeScript -> HTML Application with TypeScript. You will have Typescript transpiler set by default. Now you need angular 2. According to this answer you need to add these scripts to your page:
<script src="https://code.angularjs.org/2.0.0-beta.2/angular2-polyfills.js"></script>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/tools/typescript.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.2/Rx.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.2/angular2.dev.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.2/http.dev.js">
You also have to configure SystemJS as shown in the example i provided earlier.