These are chat archives for ractivejs/ractive

2nd
Mar 2015
Truong Nguyen
@constantx
Mar 02 2015 23:29
hey team, is there a way to have default data for a component that’s extended from another component?
var A = Ractive.extend({ data: { foo: 'bar' }});
var B = A.extend({ data: { x: 'y' }})

var view = new B();
B.get('foo'); // expect 'bar'
Truong Nguyen
@constantx
Mar 02 2015 23:34
ah, looks like it’s already working as expected :D