-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
45 lines (38 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<title>Angular 1.x lazy load</title>
</head>
<body id="body-container">
<div ui-view></div>
<hr>
<!-- Here's some values to keep an eye on in the sample in order to understand $state and $stateParams -->
<!-- $state.$current is not a public api, we are using it to
display the full url for learning purposes-->
<ul>
<li>-----DEBUG-----</li>
<li>$state = {{$state.current.name}}</li>
<li>$stateParams = {{$stateParams}}</li>
<li>$state full url = {{ $state.$current.url.source }}</li>
</ul>
<script src="jspm_packages/system.js"></script>
<script>
System.config({
bundles: {
"build/app-bundle.js": ['app.js'],
"build/app-bundle-contact.js": ['contact/module.js'],
"build/app-bundle-about.js": ['about/module.js']
}
});
</script>
<script>
System.import('app.js')
.then(function (module) {
angular.bootstrap("#body-container", [module.app.name]);
})
.catch(function (err) {
console.error(err);
});
</script>
</body>
</html>