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

Re : Testing CanJS Web Apps

$
0
0
I tried the following with requirejs domReady and jQuery domReady together and its not working 

  1. require(["jquery","can","./libs/require/domReady!","controllers/HelloWorldController"],
  2. function($,can,domReady, HelloWorldController){
  3. can.route.ready(false); // added this to not init route yet
  4. $(function ($) {
  5.  
  6. console.log("app init");
  7. new HelloWorldController('#contentWrapper');
  8. can.route.ready(true);// init route
  9. });
  10. });

Viewing all articles
Browse latest Browse all 3491

Trending Articles