Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error compiling 5 MIN QUICKSTART Angular 2.0

On adding the lines -

<reference path="typings/angular2/angular2.d.ts" >

app.ts(1,12): error TS1005: '>' expected.

app.ts(1,16): error TS1005: ';' expected.

app.ts(2,1): error TS1109: Expression expected.

like image 318
Prasanjit Dey Avatar asked May 23 '26 06:05

Prasanjit Dey


1 Answers

To import the type definition in TypeScript, you need triple forward slashes (///) at the beginning and enclose the reference tag with a forward slash (/>).

/// <reference path="typings/angular2/angular2.d.ts" />

For more examples, take a look at http://www.typescriptlang.org/Handbook#modules-splitting-across-files

like image 174
Supasate Avatar answered May 25 '26 18:05

Supasate



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!