-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage2.html
More file actions
22 lines (22 loc) · 800 Bytes
/
page2.html
File metadata and controls
22 lines (22 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<title>Page 2</title>
<script src="http://requirejs.org/docs/release/2.1.8/comments/require.js"></script>
<script>
//Load common code that includes config, then load the app
//logic for this page. Do the require calls here instead of
//a separate file so after a build there are only 2 HTTP
//requests instead of three.
require(['./js/common'], function (common) {
//js/common sets the baseUrl to be js/ so
//can just ask for 'app/main2' here instead
//of 'js/app/main2'
require(['app/main2']);
});
</script>
</head>
<body>
<a href="page1.html">Go to Page 1</a>
</body>
</html>