Questions tagged [atscript]

AtScript was planned to be a superset of TypeScript (which is itself a superset of JavaScript). In March 2015, AtScript was merged into the TypeScript project so the two are now equivalent.

AtScript is a superset of TypeScript (which is itself a superset of JavaScript).

Compared to ECMAScript 6, AtScript has types, annotations, and type introspection.

In March 2015, AtScript was merged into the TypeScript project.

7 questions
26
votes
1 answer

What does the @ (at sign) mean in the latest TypeScript (presumably v1.5) example?

There is a very interesting picture was posted in the official TypeScript blog. I wonder what the @ (at sign) symbol is doing there since (as far as I know) it cannot be used in JavaScript identifiers.
Trident D'Gao
  • 18,973
  • 19
  • 95
  • 159
23
votes
6 answers

Visual Studio 2015 Enterprise with ReSharper 10 Ultimate -- Cannot be properly resolved

I have Visual Studio 2015 Enterprise, version 14.0.24720.00 Update 1 as well as ReSharper 10 Ultimate, version 10.0.2 installed. I have a typescript file that is using AtScript syntax to refer to the Angular2 directive module, as its annotation. …
David Pine
  • 23,787
  • 10
  • 79
  • 107
11
votes
2 answers

What is difference between TypeScript and AtScript

As my knowledge TypeScript Developed by Microsoft and Used for dynamically generate JavaScript. I want know that What is difference between TypeScript and AtScript. Which one is better to learn for JavaScript programmer.
virender
  • 4,539
  • 5
  • 27
  • 31
7
votes
1 answer

Importing anuglar2/forms causing "Cannot read property 'annotations' of undefined"

I'm trying to create simple form as described in http://angularjs.blogspot.no/2015/03/forms-in-angular-2.html, but when I add import {forms, required} from 'angular2/forms'; in crashes with TypeError: Cannot read property 'annotations' of…
user656449
  • 2,950
  • 2
  • 30
  • 43
3
votes
1 answer

angular2 forms - cannot read property replace of undefined

I am following the form examples provided at Forms in Angular 2 and when I load the page I get this error TypeError: Error loading "angualr2/forms" at Error loading "angualr2/forms" from "app" at http://localhost:8080/js/app.es6…
adeelmahmood
  • 2,371
  • 8
  • 36
  • 59
3
votes
2 answers

Will we be able to migrate TypeScript to Google AtScript?

Google is developing AtScript and - if I'm right - it will be introduced with Angular 2.0. Now, I am wondering if we will be able to migrate our TypeScript files to AtScript and continue with that new syntax. O, can someone, with enough reputation,…
mvermand
  • 5,829
  • 7
  • 48
  • 74
2
votes
3 answers

Global events (window.onresize) didn't change the local variable's value

Global events (window.onresize) didn't change the local variable's value. export class TestComponent implements OnInit { a: number = 0; b: number = 0; ngOnInit() { window.onresize = () => { this.a = 10; …
Natarajan Ganapathi
  • 551
  • 1
  • 7
  • 19