Skip to content

Commit 493e65f

Browse files
committed
application is running
1 parent 87f96ef commit 493e65f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

app/app.component.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { provide } from '@angular/core';
2+
import { bootstrap } from '@angular/platform-browser-dynamic';
3+
import { HTTP_PROVIDERS } from '@angular/http';
4+
5+
import { AppComponent } from './app.component';
6+
7+
bootstrap(AppComponent, [
8+
HTTP_PROVIDERS
9+
]);

0 commit comments

Comments
 (0)