Durandal is a really great SPA framework. But we had some trouble first to get it up and running.
The problem was that we forgot 2 very important lines inside our Durandal main.js:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('jquery',[], function () { return jQuery; }); | |
define('knockout', [], function () { return ko }); |
It’s important to define both Knockout and jQuery as RequireJs modules. Without that Durandal remained silent…