greenkeeper[bot] on core-js-3.5.0
chore(package): update core-js … (compare)
greenkeeper[bot] on can-observable-mixin-1.0.7
fix(package): update can-observ… (compare)
cherifGsoul on update-infrastructure-page
cherifGsoul on master
Update infrastructure page with… (compare)
cherifGsoul on update-infrastructure-page
Fix typos (compare)
cherifGsoul on document-inserted-removed-can6
Add inserted/removed events to … (compare)
greenkeeper[bot] on can-view-live-5.0.1
fix(package): update can-view-l… (compare)
<can-import>
?
I have a component like so:
<feature-icon type="photo" types="photos" isActive="{{isActive}}" hasMedia="{{hasMediaContent('photos')}}" profilesURL="options.profilesURL"></feature-icon>
The ‘hasMedia’ attribute changes, but the binding to ‘hasMedia’ doesn’t fire.
can.Component.extend({
tag: 'feature-icon',
template: can.view('/modules/feature-icon/feature-icon.stache'),
viewModel: can.Map.extend({
init: function () {
this.bind('hasMedia', function () {
debugger;
});
},
hasMedia: false
})
});
can.Component.extend({
tag: 'feature-icon',
template: can.view('/modules/components/feature-icon/feature-icon.stache'),
viewModel: can.Map.extend({
hasMedia: false
}),
events: {
'{viewModel} hasMedia': function () {
debugger;
}
}
});