Skip to content

Commit

Permalink
fix(package): relative path of the service fixed in the container com…
Browse files Browse the repository at this point in the history
…ponent
  • Loading branch information
AnthonyNahas committed Aug 1, 2018
1 parent 2630880 commit c8d7e8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions demo/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ <h1>@angular-material-extensions/link-preview</h1>
<textarea matInput matLinkPreview></textarea>
</mat-form-field>

<!--<div>-->
<!--<mat-link-preview-container></mat-link-preview-container>-->
<!--</div>-->
<!--<mat-component></mat-component>-->
<div>
<mat-link-preview-container></mat-link-preview-container>
</div>

<p>Happy ng-hacking!</p>
</div>
</section>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!--<ng-container *ngFor="let link of linkPreviewService.links; trackBy: trackLinks">-->
<!--<mat-link-preview [link]="link"></mat-link-preview>-->
<!--</ng-container>-->
<ng-container *ngFor="let link of linkPreviewService.links; trackBy: trackLinks">
<mat-link-preview [link]="link"></mat-link-preview>
</ng-container>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Component, OnInit} from '@angular/core';
// import {MatLinkPreviewService} from '../../..';
import {Link} from 'ngx-linkifyjs';
import {MatLinkPreviewService} from '../../service/mat-link-preview.service';

@Component({
selector: 'mat-link-preview-container',
Expand All @@ -9,6 +9,8 @@ import {Link} from 'ngx-linkifyjs';
})
export class MatLinkPreviewContainerComponent implements OnInit {

constructor(public linkPreviewService: MatLinkPreviewService) {
}


ngOnInit() {
Expand Down

0 comments on commit c8d7e8b

Please sign in to comment.