3
votes

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

2

2 Answers

0
votes

You have to install typescript definitions:

tsd install -s angular2/angular2

0
votes

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/[email protected]/angular2.d.ts" />