Open samccone opened 9 years ago
Agreed, I've always liked the Backbone Api for this, but i'd love to hear more ideas.
Clock = View.extend({
tag: 'clock',
attributes: function() {
return {time: Time.now()}
}
});
AnalogClock = Clock.extend({
attributes: function() {
var attrs = this.super();
return {
hand: ':clap:'
}
}
});
I suspect we might be able to draw inspiration from Ember's implementation of components, which are like views but completely isolated from the outside world.
Aside from isolation, I agree with @jasonLaster that Backbone's API handles Web Components pretty well.
I think this should be a seamless layer that we should keep in mind.
thoughts?