Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Testing CanJS Web Apps

$
0
0
I just looked threw your canjs+require.js example and tried the following without success. I dont know why the route does not work at all when using AMD.

  1. require(["./controllers/HelloWorldController","can"],function(HolloWorldController,can){
  2. console.log('App Working'); 
  3. can.route.ready(false); // added this to not init route yet

  4. new HolloWorldController("#contentWrapper"); // Route setup is in this controller posted in the above reply

  5. can.route.ready(true);// init route
  6. }); 

Viewing all articles
Browse latest Browse all 3491

Trending Articles