QUESTION 1:
[tl;dr: is v2.canjs.com “legacy” documentation? If so, is there a reliable way to identify what is/isn’t legacy?]
The doc at CanJS - can.Component.extend says,
You will typically provide the following values on the prototype object.
And then lists: tag
, events
, helpers
, viewModel
, and template
.
However, extend | can-component | Views | API Docs | CanJS says,
Parameters
- prototype
{Object}
:An object set as the prototype of the constructor function. You will typically provide the following values on the prototype object:
tag {tag} - Defines the tag on which instances of the component constructor function will be created.
ViewModel {ViewModel} - Specifies an object that is used to render the component’s view.
view {view} - Specifies the view rendered within the custom element.
And sometimes the following values are provided:
…and the code examples I’m studying such as Canvas Clock | beginner recipes | Guides | CanJS — Build CRUD apps in fewer lines of code. only define tag
, view
, and ViewModel
.
If the answer is that the second set of documents supersedes the first, is there a FAQ or resource that would have informed me (and presumably other newbies) of that?
QUESTION 2:
API Docs | CanJS — Build CRUD apps in fewer lines of code. shows:
Legacy Collection
"can-ejs": "",
"can-list": "4.0.0",
"can-map": "4.0.1",
"can-map-backup": "",
"can-map-define": "4.0.0",
"can-view-href": "",
But the Menu at the left side of the screen (click MENU or zoom out far enough) shows:
LEGACY
can-compute
can-list
can-map
can-map-define
Q 2a. Which list is accurate?
Q 2b. If these are legacy, are they superseded by more modern equivalents, and if so what are the equivalents?
Any help appreciated, TIA.