We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f96ef commit 493e65fCopy full SHA for 493e65f
app/app.component.ts
@@ -0,0 +1,15 @@
1
+import { Component } from '@angular/core';
2
+
3
+@Component({
4
5
+ selector: 'my-app',
6
7
+ template: `<h1>{{title}}</h1>`,
8
9
+})
10
11
+export class AppComponent {
12
13
+ title = 'One Source of Truth for Angular 2';
14
15
+}
app/main.ts
@@ -0,0 +1,9 @@
+import { provide } from '@angular/core';
+import { bootstrap } from '@angular/platform-browser-dynamic';
+import { HTTP_PROVIDERS } from '@angular/http';
+import { AppComponent } from './app.component';
+bootstrap(AppComponent, [
+ HTTP_PROVIDERS
+]);
0 commit comments