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

1

2 Answers 2

0

You have to install typescript definitions:

tsd install -s angular2/angular2

Sign up to request clarification or add additional context in comments.

1 Comment

from the angular2 alpha 44 there is no need to add external typings. typings definitions already added into the angular2 dev directory.
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/[email protected]/angular2.d.ts" />

1 Comment

Could you please elaborate on this? E.g. "(3 slashes) like the following in my files:" - what files you add comments to?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.