Skip to content
This repository was archived by the owner on Sep 21, 2018. It is now read-only.

Commit c266c60

Browse files
authored
chore(deps): Fix #115 breaking changes with @angular/material update (#116)
1 parent a75b3c1 commit c266c60

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@angular/core": "^2.4.0",
3434
"@angular/forms": "^2.4.0",
3535
"@angular/http": "^2.4.0",
36-
"@angular/material": "latest",
36+
"@angular/material": "2.0.0-beta.2",
3737
"@angular/platform-browser": "^2.4.0",
3838
"@angular/platform-browser-dynamic": "^2.4.0",
3939
"@angular/router": "^3.4.0",

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { schema } from './db';
3434
imports: [
3535
CommonModule,
3636
BrowserModule,
37-
MaterialModule.forRoot(),
37+
MaterialModule,
3838
ComponentsModule,
3939
RouterModule.forRoot(routes, { useHash: true }),
4040

src/app/components/book-search.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import { Component, Output, Input, EventEmitter } from '@angular/core';
1010
<md-card>
1111
<md-card-title>Find a Book</md-card-title>
1212
<md-card-content>
13-
<md-input placeholder="Search for a book" [value]="query" (keyup)="search.emit($event.target.value)"></md-input>
13+
<md-input-container>
14+
<input mdInput placeholder="Search for a book" [value]="query" (keyup)="search.emit($event.target.value)">
15+
</md-input-container>
1416
<md-spinner [class.show]="searching"></md-spinner>
1517
</md-card-content>
1618
</md-card>
@@ -22,7 +24,7 @@ import { Component, Output, Input, EventEmitter } from '@angular/core';
2224
justify-content: center;
2325
}
2426
25-
md-input {
27+
input {
2628
width: 300px;
2729
}
2830

src/app/components/layout.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import { Component } from '@angular/core';
44
@Component({
55
selector: 'bc-layout',
66
template: `
7-
<md-sidenav-layout fullscreen>
8-
7+
<md-sidenav-container fullscreen>
8+
99
<ng-content></ng-content>
1010
11-
</md-sidenav-layout>
11+
</md-sidenav-container>
1212
`,
1313
styles: [`
14-
md-sidenav-layout {
14+
md-sidenav-container {
1515
background: rgba(0, 0, 0, 0.03);
1616
}
17-
17+
1818
*, /deep/ * {
1919
-webkit-font-smoothing: antialiased;
2020
-moz-osx-font-smoothing: grayscale;

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
version "2.4.7"
9595
resolved "https://registry.npmjs.org/@angular/http/-/http-2.4.7.tgz#b024b2b49ae0234258d42309e46f65862a42070d"
9696

97-
"@angular/material@latest":
98-
version "2.0.0-beta.1"
99-
resolved "https://registry.npmjs.org/@angular/material/-/material-2.0.0-beta.1.tgz#106a0b79fb2b48a7606a0682c4e5d0bbe03364a0"
97+
"@angular/material@^2.0.0-beta.2":
98+
version "2.0.0-beta.2"
99+
resolved "https://registry.npmjs.org/@angular/material/-/material-2.0.0-beta.2.tgz#65ee8733990347b7518b7f42113e02e069dc109b"
100100

101101
"@angular/platform-browser-dynamic@^2.4.0":
102102
version "2.4.7"

0 commit comments

Comments
 (0)