Leonid Lunin Leonid Lunin - 1 year ago 292
Dart Question

Input onchange with Angular2

I try to detect on change with dart. Example html:

<input id="photoUpload" type="file" name="photo" (onchange)="update()" multiple>


selector: "photo-upload-dialog", templateUrl: "photo_upload_dialog.html")
class PhotoUploadDialog {

update() async {

But nothing in a console.

Answer Source

onChange is the default event handler name, not the event name.

Use instead

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