<my-app my-data="{key: value, key: value}"></my-app>
<my-app my-data="key =value key2=value"></my-app>
Uncaught ReferenceError: setImmediate is not defined
on proto-compute
canjs/canjs
use ^
which means any patch or minor after the specified one is acceptable.
require
-ed
delegate
in v2.3. Is this still around or is there some other way to do the same thing?
can-jquery
does that then delegate as expected?
Map
directly
delegate
, just us a computed property and listen to when that changes
I'm using define map for the following:
"selection": {
'name': null,
'associated_IDs': [],
get common_associated_IDs() {
return this.name;
},
}
but when I set name:
this.default_selectors[selectorIndexNum].set({
selection: {
name: selectorOption.name,
associated_IDs: selectorOption.associated_IDs
}
});
and call common_associated_IDs
this.viewModel.default_selectors[0].selection.common_associated_IDs
I still get null
type
specifier (or Type
), rather than directly giving it property values.
"selection": {
"type": {
'name': { 'value': null },
'associated_IDs': { 'Value': DefineList },
get common_associated_IDs() {
return this.name;
}
}
}
type
and value
and getter/setters for each sub-property as needed. They work the same as the containing object, so value
is necessary for initial values
value: {}
along with the type def.