DeBiese / Angular-XrmServiceToolkit

An angular version of the XrmServiceToolkit (SOAP and REST).
9 stars 3 forks source link

ECMAScript 6 #1

Open urswi opened 8 years ago

urswi commented 8 years ago

Hi

when using ECMAScript 6 Compilation Mode in Visual Studio ngXrmServiceToolkit is not working anymore.

Error: JavaScript critical error at line 13, column 13 in http://localhost:63176/Scripts/ngXrmServiceToolkit.js\n\nSCRIPT1002: Syntaxfehler

When going back to ECMAScript 5 everything is working fine. But I'm wondering how you where able to integrate "const" and "let" into ngXrmServiceToolkit.ts that it also runs under ECMAScript 5. My usage of "const" and "let" always needs ECMAScript 5 to compile.

Do you know about this issue, or is it just me?

Best Regards urswi

DeBiese commented 8 years ago

I haven't actually tried compiling this to ECMAScript 6 yet.

TypeScript allows you to use const and let before compiling to ECMAScript 6, it just translates that back to var in the javascript file.