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. 回答1: The big news this week is the merging of AtScript and TypeScript. The following example from the AtScript documentation... @Component() class MyApp { server:Server; @Bind('name') name:string; @Event('foo') fooFn:Function; @Inject() constructor(@parent server:Server) {} greet():string {} }