bitovi / bitovi/training

CanJS : can-define behaviours (weekly-training-topics)

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.