Skip to content

Commit c0d386d

Browse files
committed
demo(app): integration of the latest features of the library
1 parent f8d5bdf commit c0d386d

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

demo/src/app/home/home.component.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,18 @@ <h1>@angular-material-extensions/link-preview</h1>
2323
</div>
2424

2525
<section class="home">
26-
<div class="container">
27-
<!-- put your content here-->
26+
<div class="container" fxFlex.xs="100" fxFlex.sm="70" fxFlex="50">
27+
<div fxLayout="column" fxLayoutAlign="center">
2828

29-
<div class="mx-auto">
30-
<mat-link-preview [linkPreview]="linkExample"></mat-link-preview>
31-
</div>
29+
<mat-form-field class="demo-full-width" appearance="outline">
30+
<mat-label>Enter here your text here with few links to preview ;)</mat-label>
31+
<textarea matInput matTextareaAutosize matLinkPreview minRows="6"></textarea>
32+
<mat-link-preview-container [multiple]="true" color=""></mat-link-preview-container>
33+
</mat-form-field>
3234

33-
<mat-form-field class="demo-full-width">
34-
<mat-label>Address 2</mat-label>
35-
<textarea matInput matLinkPreview></textarea>
36-
</mat-form-field>
35+
<!--<mat-link-preview [linkPreview]="linkExample"></mat-link-preview>-->
3736

38-
<div>
39-
<mat-link-preview-container></mat-link-preview-container>
37+
<p>Happy ng-hacking!</p>
4038
</div>
41-
42-
<p>Happy ng-hacking!</p>
4339
</div>
4440
</section>
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
.logo {
2-
width: 256px;
3-
height: 256px;
4-
margin-top: 1.4rem;
2+
width: 256px;
3+
height: 256px;
4+
margin-top: 1.4rem;
55
}
66

77
.home {
8-
margin-top: 1.0rem;
9-
}
8+
margin-top: 1.0rem;
9+
}
10+
11+
mat-link-preview-container {
12+
margin-top: 2rem;
13+
}

demo/src/app/home/home.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import {MatLinkPreviewModule} from '@angular-material-extensions/link-preview';
55
import {HomeRoutingModule} from './home-routing.module';
66
import {HomeComponent} from './home.component';
77
import {MatInputModule} from '@angular/material';
8+
import {FlexLayoutModule} from '@angular/flex-layout';
89

910
@NgModule({
1011
imports: [
1112
CommonModule,
1213
MatLinkPreviewModule.forRoot(),
14+
FlexLayoutModule,
1315
HomeRoutingModule,
1416
MatInputModule,
1517
],

0 commit comments

Comments
 (0)