canjs-routing

Routing Conventions in Can.js

◇◆丶佛笑我妖孽 提交于 2019-12-24 17:43:07
问题 So I’m looking to make some routes within my super cool can.js application. Aiming for something like this… #!claims ClaimsController - lists claims #!claims/:id ClaimController - views a single claim #!claims/new ClaimController - creates a new claim #!claims/:id/pdf - do nothing, the ClaimController will handle it #!admin AdminController - loads my Administrative panel with menu #!admin/users - do nothing, the AdminController will handle it #!admin/settings - do nothing, the AdminController

Routing Conventions in Can.js

☆樱花仙子☆ 提交于 2019-12-24 17:42:10
问题 So I’m looking to make some routes within my super cool can.js application. Aiming for something like this… #!claims ClaimsController - lists claims #!claims/:id ClaimController - views a single claim #!claims/new ClaimController - creates a new claim #!claims/:id/pdf - do nothing, the ClaimController will handle it #!admin AdminController - loads my Administrative panel with menu #!admin/users - do nothing, the AdminController will handle it #!admin/settings - do nothing, the AdminController

How do I Implement router in CanJS

戏子无情 提交于 2019-12-11 12:42:20
问题 I am taking help of the https://github.com/thinkadoo/Projects application. I have built a similar app with the help of this one. My application is using d3 charts instead of the one this uses. My app initializes the routers as var patientStatus = new PatientStatus('#application', {'credentials':Credentials,'secret':Secret}); Now if i want to implement Router then what changes should be done? Here is my JSFiddle with both implementations. The first one is working. But the later part where in I