标签: atscript

使用ReSharper 10 Ultimate的Visual Studio 2015 Enterprise - 无法正确解析

我安装了Visual Studio 2015 Enterprise,版本14.0.24720.00 Update 1以及ReSharper 10 Ultimate 10.0.2版.我有一个打字稿文件使用AtScript语法来引用Angular2指令模块作为其注释.但是,ReSharper声明了以下错误:

符号'指令'无法正确解析,可能位于无法访问的模块中.

以下是完整错误工具提示.

在此输入图像描述

应用程序按预期编译和运行,应用程序的角度部分也可以根据需要运行.看起来好像这是一个ReSharper假阴性.是否有人熟悉其他只是禁用ReSharper或忽略警告的解决方法?

resharper visual-studio typescript atscript

23
推荐指数
1
解决办法
6988
查看次数

@(at符号)在最新的TypeScript(可能是v1.5)示例中意味着什么?

在官方的TypeScript 博客中发布了一张非常有趣的图片.

奇怪的语法

我想知道@(at sign)符号是做什么的(因为据我所知)它不能用在JavaScript标识符中.

javascript typescript atscript angular

19
推荐指数
1
解决办法
5424
查看次数

TypeScript和AtScript有什么区别

据我所知,TypeScript由Microsoft开发并用于动态生成JavaScript.

我想知道TypeScript和AtScript有什么区别.哪个更适合JavaScript程序员学习.

javascript angularjs typescript atscript

8
推荐指数
2
解决办法
8662
查看次数

导入anuglar2 /表单导致"无法读取未定义的属性'注释"

我正在尝试创建简单的表单,如http://angularjs.blogspot.no/2015/03/forms-in-angular-2.html中所述,但是当我添加时

import {forms, required} from 'angular2/forms';

在与崩溃

TypeError: Cannot read property 'annotations' of undefined

TypeError: Cannot read property 'annotations' of undefined
    at ReflectionCapabilities.System.register.execute.$__export.annotations (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/reflection/reflection_capabilities.es6!eval:81:40)
    at Reflector.System.register.execute.$__export.annotations (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/reflection/reflector.es6!eval:81:50)
    at DirectiveMetadataReader.System.register.execute.$__export.read (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/directive_metadata_reader.es6!eval:31:41)
    at eval (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:127:35)
    at Array.map (native)
    at Function.System.register.execute.$__export.map (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/facade/collection.es6!eval:172:26)
    at Compiler.System.register.execute.$__export.createSteps (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:126:43)
    at Compiler.System.register.execute.$__export._compileTemplate (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:164:53)
    at eval (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:154:29)
    at Zone.run (http://localhost:9090/node_modules/zone.js/zone.js:87:19)

-----async gap-----
Error
    at Function.System.register.execute.$__export.then (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/facade/async.es6!eval:35:28)
    at Compiler.System.register.execute.$__export._compile (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:153:42)
    at Compiler.System.register.execute.$__export.compile (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/compiler/compiler.es6!eval:134:34)
    at eval (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/core/application.es6!eval:73:23)
    at Function.System.register.execute.$__export.apply (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/facade/lang.es6!eval:317:23)

-----async gap-----
Error
    at _AsyncInjectorStrategy.System.register.execute._AsyncInjectorStrategy.instantiate (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/di/injector.es6!eval:297:17)
    at Injector.System.register.execute.$__export._getByKey (http://localhost:9090/node_modules/angular/dist/js/prod/es6/angular2/src/di/injector.es6!eval:138:33) …
Run Code Online (Sandbox Code Playgroud)

javascript ecmascript-6 atscript angular

7
推荐指数
1
解决办法
4596
查看次数

我们能将TypeScript迁移到Google AtScript吗?

Google正在开发AtScript,如果我是对的,它将与Angular 2.0一起推出.现在,我想知道我们是否能够将我们的TypeScript文件迁移到AtScript并继续使用这种新语法.

O,有足够声誉的人可以创建标记AtScript吗?谢谢!

angularjs typescript atscript

3
推荐指数
1
解决办法
557
查看次数