title: Durandal/Require: module load and execution
body: <p>In a shell whit a navbar I have to call javascript function (external module) but only when the composition is completed.</p>
  
  <p>This is my code:</p>
  
  <p>shell.js</p>
  
  <pre><code>define(['plugins/router', 'durandal/app', 'charms'], function (router, app, ch) {
    return {
      router: router,
      activate: function () {
          router.map([
              { route: '', title:'Welcome', moduleId: 'viewmodels/welcome', nav: true },
              { route: 'Gallery', moduleId: 'viewmodels/gallery', nav: true }
          ]).buildNavigationModel();
  
          return router.activate();
      }
    };
  });
  </code></pre>
  
  <p>I was trying to use attached/compositionComplete callback but the module is call always before. </p>
  
  <p>Any ideas?
  Thanks</p>