Releases: canjs/can-view-model
Releases · canjs/can-view-model
QUNIT2 upgrade
This updates the tests to use QUnit@2.x.x.
Update setting view-model
This update the docs to use domData.set
without .call
, like so:
import domData from "can-dom-data";
import DefineMap from "can-define/map/map";
const element = document.querySelector( "#my-id" );
const myVm = new DefineMap();
domData.set( element, "viewModel", myVm );
Updating can-globals dependency
Updated docs, added cycle detection, and use can-globals
Document the API changes from 3.2.0
With version 3.2.0, can-view-model gained the ability to read the view model of an element from a jQuery, array-like, or selector string. This was not documented at the time, but is now officially part of the API.
can-reflect
v3.3.0 3.3.0