This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
src/app/shared/doc-viewer Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- import { ComponentPortal , DomPortalHost , DomPortalOutlet } from '@angular/cdk/portal' ;
1
+ import { ComponentPortal , DomPortalOutlet } from '@angular/cdk/portal' ;
2
2
import { HttpClient , HttpErrorResponse } from '@angular/common/http' ;
3
3
import { DomSanitizer } from '@angular/platform-browser' ;
4
4
import {
@@ -107,7 +107,7 @@ export class DocViewer implements OnDestroy {
107
107
108
108
Array . prototype . slice . call ( exampleElements ) . forEach ( ( element : Element ) => {
109
109
const example = element . getAttribute ( componentName ) ;
110
- const portalHost = new DomPortalHost (
110
+ const portalHost = new DomPortalOutlet (
111
111
element , this . _componentFactoryResolver , this . _appRef , this . _injector ) ;
112
112
const examplePortal = new ComponentPortal ( componentClass , this . _viewContainerRef ) ;
113
113
const exampleViewer = portalHost . attach ( examplePortal ) ;
Original file line number Diff line number Diff line change @@ -17,12 +17,8 @@ import {Router} from '@angular/router';
17
17
@Component ( {
18
18
selector : 'header-link' ,
19
19
template : `
20
- <a
21
- title="Link to this heading"
22
- aria-label="Link to this heading"
23
- class="docs-markdown-a"
24
- [attr.aria-describedby]="example"
25
- [href]="_getFragmentUrl()">
20
+ <a aria-label="Link to this heading" class="docs-markdown-a"
21
+ [attr.aria-describedby]="example" [href]="_getFragmentUrl()">
26
22
<mat-icon>link</mat-icon>
27
23
</a>
28
24
`
You can’t perform that action at this time.
0 commit comments