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.
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 { HTTP_PROVIDERS } from 'angular2/http'; import { ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy } from 'angular2/router'; import { AppComponent } from './app.component'; import { ChatService } from './services/chat.service'; import { ThreadService...