Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

Commit cca30c0

Browse files
author
Marc Labud
committed
Angular 2.0.1: Up and Running
1 parent df2a816 commit cca30c0

File tree

6 files changed

+7
-16
lines changed

6 files changed

+7
-16
lines changed

app/app.module.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3-
import {HttpModule} from '@angular/http';
3+
import { HttpModule } from '@angular/http';
4+
import {FormsModule} from '@angular/forms';
45
import {DemoService} from './demo.service'
56

67
import { AppComponent } from './app.component';
78

89
@NgModule({
9-
imports: [BrowserModule,HttpModule],
10+
imports: [BrowserModule,HttpModule,FormsModule],
1011
declarations: [AppComponent],
1112
providers: [DemoService],
1213
schemas: [CUSTOM_ELEMENTS_SCHEMA],

app/boot.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/demo.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Injectable} from '@angular/core';
2-
import {HTTP_PROVIDERS, Http, Response, Headers, RequestOptions} from "@angular/http";
2+
import {Http, Response, Headers, RequestOptions} from "@angular/http";
33
import {Observable} from 'rxjs/Rx';
44

55
@Injectable()

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE html>
33
<html>
44
<head>
5-
<title>Angular QuickStart</title>
5+
<title>Angular http-demo</title>
66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"lite-server": "^2.2.2",
3333
"typescript": "^2.0.3",
3434
"typings": "^1.4.0",
35-
3635
"canonical-path": "0.0.2",
3736
"http-server": "^0.9.0",
3837
"lodash": "^4.16.2"

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"noImplicitAny": true
1111
},
1212
"exclude": [
13-
"node_modules"
13+
"node_modules",
14+
"typings"
1415
]
1516
}

0 commit comments

Comments
 (0)