forked from PatrickJS/angular-webpack-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.ts
More file actions
29 lines (24 loc) · 686 Bytes
/
bootstrap.ts
File metadata and controls
29 lines (24 loc) · 686 Bytes
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
/// <reference path="../typings/_custom.d.ts" />
// Angular 2
import {bootstrap} from 'angular2/angular2';
import {FORM_BINDINGS, ELEMENT_PROBE_BINDINGS} from 'angular2/angular2'
import {ROUTER_BINDINGS} from 'angular2/router';
import {HTTP_BINDINGS} from 'angular2/http';
import {App} from './app';
const APP_BINDINGS = [
// These are dependencies of our App
FORM_BINDINGS,
ROUTER_BINDINGS,
HTTP_BINDINGS,
ELEMENT_PROBE_BINDINGS
];
/*
* Bootstrap our Angular app with a top level component `App` and inject
* our Universal/Platform services/bindings into Angular's dependency injection
*/
bootstrap(
// Top Level Component
App,
// AppBindings
APP_BINDINGS
);