Initializing the app

We touched on app initialization earlier when we created the app.module.ts and main.ts files. The first file wraps our application in a module and the second file bootstraps that module. Now we will take a more detailed look at the initialization process.

Loading the modules needed by our application

Let's go back to the index.html page again and take a look at the following script tags on this page:

<script src=""></script> 
<script src="systemjs.config.js"></script> 

The first tag indicates that we will be using a JavaScript library called SystemJS in our application. The second tag references a file within our application that sets the configuration for SystemJS.

As we mentioned ...

Get Angular 2 By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.