Please sign in to comment.
feat(compose): @bindable activation-strategy
This commit introduces @bindable activation-strategy for compose. The default strategy is 'invoke-lifecycle', which is also the current strategy. The strategy 'replace' forces re-creation of bound view and view-model on model change. This is helpful, where the re-instantiation of view and view-model is needed on model change. For example, when validation is used in a custom element; on model change, old validation rules still gets triggered if the view-model is not reinstantiated. Fixes aurelia#381
- Loading branch information...
Showing with 38 additions and 3 deletions.