[英]Dart Angular2 in WebStorm: “Attribute [(ngModel)] is not allowed her …”
天兒真好,
嘗試在WebStorm中使用Dart遵循Angular2“ Heros編輯器”教程:
import 'package:angular2/core.dart';
@Component( selector: 'my-app',
styleUrls: const ['app_component.css'],
template: '<input [(ngModel)]="hero" placeholder="name">')
class AppComponent{ String hero = "Seth Ladd"; }
WebStorm IntelliSense將[(ngModel)]標記為“此處不允許使用屬性[(ngModel)] ...”。
我是否缺少導入文件或設置以使WebStorm在Dart中識別Angular2?
感謝您的幫助。
WebStorm目前不支持AngularDart,您可能會在注入的HTML中得到一些錯誤警告。 另外,您可能會錯過Angular特定的代碼完成,突出顯示,代碼導航等功能。請觀看https://youtrack.jetbrains.com/issue/WEB-11590 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.