PSL PSL - 1 year ago 289
Dart Question

Dart Angular2 in WebStorm: "Attribute [(ngModel)] is not allowed her ..."


Trying to follow the Angular2 'Heros Editor' tutorial using Dart in WebStorm:

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"; }

The WebStorm IntelliSense marks [(ngModel)] as "Attribute [(ngModel)] is not allowed here...".

Am I missing an import or a setting to have WebStorm recognize Angular2 in Dart?

Thanks for your kind help.

Answer Source

WebStorm doesn't support AngularDart at the moment an you may get some false warnings in injected HTML. Also you may miss Angular specific code completion, highlighting, code navigation, etc. Watch

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download