File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed
Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ import {MatLinkPreviewModule} from '@angular-material-extensions/link-preview';
55import { HomeRoutingModule } from './home-routing.module' ;
66import { HomeComponent } from './home.component' ;
77import { 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 ] ,
You can’t perform that action at this time.
0 commit comments