Hi,
I’ve been a longtime user of javascriptMVC/canjs but I’ve lost touch with how to do things these days. I want to rewrite an old app of mine, but somehow the examples never go deep enough to be helpful.
Could anyone point me in the right direction how to setup a simple CRUD system?
Let’s say I have 2 models: Users, Orders. I want to create a simple CRUD management system:
left side a menu with links to Users, Orders
If I click on Users: display a list of users. When I click on a row the list is replaced with an individual edit screen.
I figure I need to use can-route with paths like /user/[id] and /order/[id]
I’ve got the models already set up, what I’m struggling with is how to set up the ViewModels. Can anyone give me a simple setup? Which file structure to use?