Hi all,
using node.js and copying the following from the examples returns
“TypeError: route.register is not a function”
Any hints what is missing. Everything else in my application works flawlessly and this is the last bit missing
import DefineMap from “can-define/map/map”;
import route from “can-route/can-route”;
const AppViewModel = DefineMap.extend( {
page: “string”
} );
const appState = new AppViewModel();
route.data = appState;
route.register( “{page}”, { page: “home” } );
route.start();
Cheers,
Nada