CanJS : can-define behaviours (weekly-training-topics)
- Dominant language
- JavaScript
- Stars
- 19
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
When defining a DefineMap/List what do we need to use and how do we use it?
The difference between Type/type/Value/value is very confusing.
This is how we define a DefineMap typically (setting a default value for every property).
```
import DefineMap from 'can-define/map/map';
export default DefineMap.extend({
children : {
value : []
},
hasChildren : {
value : false
},
classes : {
value : ''
},
path : {
value : null
}
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the DefineMap example in the issue and compare the DefineMap/List behaviours it asks about. Document when to use Type, type, Value, and value, including how default values are defined; done when the guidance clearly explains each choice and its usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100