How would you go about accessing a DOM element in Aurelia? This is a broad and general question, but I have a feeling there are one or two preferred ways to do this. I have
Typescript version
@transient() @autoinject export class ViewModel { myForm: any; canDeactivate() { var form = this.myForm; // do stuffs } }