Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit 7618f5c

Browse files
committed
Add header-footer module resolvers to bundles, require.js example
1 parent 48d0b02 commit 7618f5c

File tree

10 files changed

+2189
-20
lines changed

10 files changed

+2189
-20
lines changed

example/requirejs/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
requirejs.config({
2+
baseUrl: '../../dist/public'
3+
});
4+
5+
requirejs(['jaydata', 'jaydataproviders/oDataProvider'], function ($data) {
6+
document.body.innerHTML += $data.version;
7+
});

example/requirejs/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<title>Using JayData with Require.js</title>
4+
<head>
5+
<script data-main="app" src="require.js"></script>
6+
</head>
7+
<body>
8+
<h1>Using JayData with Require.js</h1>
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)