Aurelia 2 au-compose bind to an instance of a view-model

Good day,
Is there a way in au2 to bind a compose to an instance of a view-model like we could in au1?
i.e.

<compose view-model.bind="myCustomViewModel"></compose>

where myCustomViewModel is an instance of that view model.

in au2 it seems that you can only bind to the type of a view model, not an instance of a viewmodel, i.e.

<au-compose subject.bind="viewModel"></au-compose>

where viewModel = MyCustomViewModel class

Hope that makes sense

2 Likes

Not quite yet, sorry! It’s on the backlog as two related issues, but we’ll also add in a capability for directly passing in the binding context
https://github.com/aurelia/aurelia/issues/497
https://github.com/aurelia/aurelia/issues/498