plwalters / aurelia-bs-modal

DEPRECATED - Aurelia plugin for bootstrap modal
MIT License
17 stars 16 forks source link

Unable to bind an existing ViewModel instance to modal-body content-view #12

Open DavidBLynch opened 9 years ago

DavidBLynch commented 9 years ago

I'm trying to use the aurelia-bs-modal, and everything is working except my modal-content. I'm doing:

<modal-body content-view.bind="taskInstance"> 

where _taskInstance_is an already constructed viewModel (with corresponding template). When rendered the template corresponding to taskInstance is not loaded.

Then taskInstance template loads fine when I use:

<compose view-modal.bind="taskInstance"> 
plwalters commented 8 years ago

@DavidBLynch I believe this was a regression issue when merging a PR - can you update the package to the latest release and ensure it is working? I'll close this out if so.