3

My own project use MVC4. I try to

  1. add tsconfig.json "experimentalDecorators": true
  2. change project TypeScriptExperimentalDecorators = true and TypeScriptEmitDecoratorMetadata = true

and it's not work for me. how to compile typescript and angular2

but not work for me.

Please help me

thank you

Community
  • 1
  • 1
  • Possible duplicate of [Cannot find module 'angular2/angular2'](http://stackoverflow.com/questions/34697466/cannot-find-module-angular2-angular2) – glemiere Sep 01 '16 at 02:28

2 Answers2

0

You have to install typescript definitions:

tsd install -s angular2/angular2

Vasil
  • 1
  • 3
  • from the angular2 alpha 44 there is no need to add external typings. typings definitions already added into the angular2 dev directory. – Pardeep jain Nov 03 '15 at 18:35
0

The d.ts files for angular2 are not provided by tsd since 2.0.0-alpha.41. Now they are part of the Distribution and can be found in the toplevel directory.

I'm having comments (3 slashes) like the following in my files:

/// <reference path="my/path/angular2@2.0.0-alpha.45/angular2.d.ts" />

Juergen Zimmermann
  • 2,084
  • 7
  • 29
  • 43
  • Could you please elaborate on this? E.g. "(3 slashes) like the following in my files:" - what files you add comments to? – Alex Dec 28 '15 at 18:30