canjs / can-route

Observable front-end application routing for CanJS.
https://canjs.com/doc/can-route.html
MIT License
10 stars 4 forks source link

route.data DefineMap - Include defaults #243

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

If you do:

route.register("{page}", {
  foo: undefined,
  bar: "default"
});

It will add the page property to the DefineMap but won't add the foo or bar properties.