Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 18:41
Show Gist options
  • Save devdays/ea70db9df974ee07ae0a to your computer and use it in GitHub Desktop.
Save devdays/ea70db9df974ee07ae0a to your computer and use it in GitHub Desktop.
SPA - Require Config & template
require.config({
paths: {
// "jquery": "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min",
"jquery": "../../Scripts/jquery-2.0.3",
"_": "../../Scripts/lodash",
}
});
require(['../modules/template'], function (template) {
template.showName("Jack");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment