Replace template in child component


#1

I would expect to be able to put a replaceable part within a replace-part template so a component can provide ability to override a child component replaceable template whilst also providing it’s own default. However, this doesn’t appear to work:

Is there a recommend way to achieve the same thing? Or will I have to duplicate the nested view/view-model inside the parent component?


#2

It is currently requested here https://github.com/aurelia/templating/issues/493

Not supported at the moment, so the suggestion for the time being is to replaceable all the way


#3

Thanks. What do you mean by replaceable all the way? How can I avoid having to duplicate the view and view model of the child control in the parent?