Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit d8ca341

Browse files
tinayuangaommalerba
authored andcommitted
Update material version to rc3 & fix type for ExampleViewer (#345)
1 parent 89a6cf1 commit d8ca341

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
"private": true,
2121
"dependencies": {
2222
"@angular/animations": "^5.0.0",
23-
"@angular/cdk": "^5.0.0-rc.2",
23+
"@angular/cdk": "^5.0.0-rc.3",
2424
"@angular/common": "^5.0.0",
2525
"@angular/compiler": "^5.0.0",
2626
"@angular/core": "^5.0.0",
2727
"@angular/forms": "^5.0.0",
2828
"@angular/http": "^5.0.0",
29-
"@angular/material": "^5.0.0-rc.2",
30-
"@angular/material-moment-adapter": "^5.0.0-rc.2",
29+
"@angular/material": "^5.0.0-rc.3",
30+
"@angular/material-moment-adapter": "^5.0.0-rc.3",
3131
"@angular/platform-browser": "^5.0.0",
3232
"@angular/platform-browser-dynamic": "^5.0.0",
3333
"@angular/router": "^5.0.0",

src/app/shared/doc-viewer/doc-viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class DocViewer implements OnDestroy {
9292
element, this._componentFactoryResolver, this._appRef, this._injector);
9393
let examplePortal = new ComponentPortal(componentClass, this._viewContainerRef);
9494
let exampleViewer = portalHost.attach(examplePortal);
95-
exampleViewer.instance.example = example;
95+
(exampleViewer.instance as ExampleViewer).example = example;
9696

9797
this._portalHosts.push(portalHost);
9898
});

0 commit comments

Comments
 (0)