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) · 697 Bytes
/
bootstrap.ts
File metadata and controls
29 lines (24 loc) · 697 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_PROVIDERS, ELEMENT_PROBE_PROVIDERS} from 'angular2/angular2'
import {ROUTER_PROVIDERS} from 'angular2/router';
import {HTTP_PROVIDERS} from 'angular2/http';
import {App} from './app';
const APP_PROVIDERS = [
// These are dependencies of our App
FORM_PROVIDERS,
ROUTER_PROVIDERS,
HTTP_PROVIDERS,
ELEMENT_PROBE_PROVIDERS
];
/*
* 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,
// AppProviders
APP_PROVIDERS
);