Bootstrapping the Angular app

It's time to start building our client application using Angular 2. We are going to integrate SocketIO with the client to communicate with our backend application. We are going to showcase only the most important parts of the application, but you can look at the final version anytime.

The boot file

We are going to boot our application from a specific file, and—probably you have already guessed it—it will be called public/src/boot.ts. For better transparency and to foresee what we are going to build, the following code snippet from the boot.ts file will be the final version, with all the necessary data added to it:

import { bootstrap } from 'angular2/platform/browser'; import { provide } from 'angular2/core'; import { ...

Get MEAN Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.