mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 09:44:51 +01:00
22
test/usageTests/reqJsApp.js
Normal file
22
test/usageTests/reqJsApp.js
Normal file
@@ -0,0 +1,22 @@
|
||||
require.config({
|
||||
baseUrl: '.',
|
||||
paths: {
|
||||
// the left side is the module ID,
|
||||
// the right side is the path to
|
||||
// the jQuery file, relative to baseUrl.
|
||||
// Also, the path should NOT include
|
||||
// the '.js' file extension. This example
|
||||
// is using jQuery 1.9.0 located at
|
||||
// js/lib/jquery-1.9.0.js, relative to
|
||||
// the HTML page.
|
||||
mermaid: 'bower_components/mermaid/dist/mermaid.full'
|
||||
}
|
||||
});
|
||||
|
||||
// Start the main app logic.
|
||||
requirejs(['simple','mermaid'],
|
||||
function (simple) {
|
||||
//jQuery, canvas and the app/sub module are all
|
||||
//loaded and can be used here now.
|
||||
mermaid.init();
|
||||
});
|
||||
Reference in New Issue
Block a user