Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 18, 2014 18:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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