Hi,
Just a quick question as I dont find it explicitly in the documentation.What’s the current best practice for referencing the component’s DOM element from the controller?
Is it to inject the INode list this?
import {inject, INode} from "aurelia";
@inject(INode)
export class MyComponent {
constructor(private element: INode) {}
}
That seems to be working, but I’m not sure if it’s idiomatic Aurelia.
Thanks for any input.