Extend Projector.append so it can handle Classes as well
peterwestendorp opened this issue · comments
Peter Westendorp commented
Right now, when I want to append a Class based Maquette component, I have to do this:
let dateInput = new DateInput(); projector.initialize(dateInput.renderMaquette.bind(dateInput));
It would be nice if projector.initialize
would be able to do the binding for me, so I would only have to pass in a Class: projector.initialize(new DateInput())
.
This would also require a change in MaquetteQuery on the initialize
method.