Skip to content

Commit 242b004

Browse files
committed
Added app.js file
1 parent 716b05f commit 242b004

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- 2. Load our 'modules' -->
2323
<script src='app/app.component.js'></script>
2424
<script src='app/app.module.js'></script>
25-
<script src='app/main.js'></script>
25+
<script src='app/app.js'></script>
2626
</head>
2727

2828
<!-- 3. Display the application -->

app/js/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(function(app) {
2+
document.addEventListener('DOMContentLoaded', function() {
3+
ng.platformBrowserDynamic
4+
.platformBrowserDynamic()
5+
.bootstrapModule(app.AppModule);
6+
});
7+
})(window.app || (window.app = {}));

0 commit comments

Comments
 (0)