Skip to content

3.1.0

Choose a tag to compare

@matthewp matthewp released this 14 Dec 15:21
· 19 commits to master since this release

This is a minor release. This adds two new features:

  • Models are generated with names. This means instead of:
const Restaurant = DefineMap.extend({ ...

Names are given for better devtools integration:

const Restaurant = DefineMap.extend("Restaurant", { ...

Secondly, modlet component demo pages use a simpler method that involves using the constructible can-components.

<script type="steal-module">
import "place-my-order-assets";
import "~/models/fixtures/";
import RestaurantList from "~/pages/restaurant/list/";

const list = new RestaurantList({
  viewModel: {}
});

document.body.appendChild(list.element);
</script>