Skip to content

Commit 903bfcf

Browse files
nunojpgbrandonroberts
authored andcommitted
chore(deps): Upgraded to Angular 4.0.1
Upgrade to Angular 4.0.1 and Material 2.0.0-beta.3
1 parent c753cb6 commit 903bfcf

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/common": "^4.0.0",
16-
"@angular/compiler": "^4.0.0",
17-
"@angular/core": "^4.0.0",
18-
"@angular/forms": "^4.0.0",
19-
"@angular/http": "^4.0.0",
20-
"@angular/material": "^2.0.0-beta.2",
21-
"@angular/platform-browser": "^4.0.0",
22-
"@angular/platform-browser-dynamic": "^4.0.0",
15+
"@angular/animations": "^4.0.1",
16+
"@angular/common": "^4.0.1",
17+
"@angular/compiler": "^4.0.1",
18+
"@angular/core": "^4.0.1",
19+
"@angular/forms": "^4.0.1",
20+
"@angular/http": "^4.0.1",
21+
"@angular/material": "^2.0.0-beta.3",
22+
"@angular/platform-browser": "^4.0.1",
23+
"@angular/platform-browser-dynamic": "^4.0.1",
2324
"@angular/router": "^4.0.0",
2425
"@ngrx/core": "^1.2.0",
2526
"@ngrx/effects": "^2.0.2",
@@ -30,7 +31,7 @@
3031
},
3132
"devDependencies": {
3233
"@angular/cli": "1.0.0",
33-
"@angular/compiler-cli": "^4.0.0",
34+
"@angular/compiler-cli": "^4.0.1",
3435
"@ngrx/store-devtools": "^3.2.4",
3536
"@types/jasmine": "2.5.38",
3637
"@types/node": "~6.0.60",

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { BrowserModule } from '@angular/platform-browser';
2+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
23
import { NgModule } from '@angular/core';
34
import { ReactiveFormsModule } from '@angular/forms';
45
import { HttpModule } from '@angular/http';
@@ -21,6 +22,7 @@ import { SearchResultsComponent } from './search-results.component';
2122
],
2223
imports: [
2324
BrowserModule,
25+
BrowserAnimationsModule,
2426
ReactiveFormsModule,
2527
HttpModule,
2628
MaterialModule,

src/app/book-search.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'rxjs/add/operator/debounceTime';
22
import 'rxjs/add/operator/filter';
3-
import { Component, Output, Input, EventEmitter } from '@angular/core';
3+
import { Component, Output, Input, EventEmitter, OnInit } from '@angular/core';
44
import { FormControl } from '@angular/forms';
55

66
@Component({
@@ -26,7 +26,7 @@ import { FormControl } from '@angular/forms';
2626
}
2727
`]
2828
})
29-
export class BookSearchComponent {
29+
export class BookSearchComponent implements OnInit {
3030
searchTerms: FormControl = new FormControl();
3131

3232
@Input() set value(val: string) {
@@ -39,7 +39,7 @@ export class BookSearchComponent {
3939
this.searchTerms
4040
.valueChanges
4141
.debounceTime(500)
42-
.filter(terms => terms != '' && terms !== this.value)
42+
.filter(terms => terms !== '' && terms !== this.value)
4343
.subscribe(this.search);
4444
}
4545
}

src/app/google-books.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class GoogleBooksService {
2020
} else {
2121
return this.http.get('/assets/empty.json');
2222
}
23-
})
23+
})
2424
.map(res => res.json().items || []);
2525
}
2626
}

src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* You can add global styles to this file, and also import other style files */
2-
@import '~@angular/material/core/theming/prebuilt/deeppurple-amber.css';
2+
@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
33

44
* {
55
box-sizing: border-box;

0 commit comments

Comments
 (0)