Skip to content

Commit d06d933

Browse files
committed
Flex layout added
1 parent 67d0f81 commit d06d933

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@angular/common": "~7.2.0",
1717
"@angular/compiler": "~7.2.0",
1818
"@angular/core": "~7.2.0",
19+
"@angular/flex-layout": "^7.0.0-beta.24",
1920
"@angular/forms": "~7.2.0",
2021
"@angular/material": "^7.3.7",
2122
"@angular/platform-browser": "~7.2.0",

src/app/app.component.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
<div>
2-
<button mat-raised-button color="primary">
3-
<mat-icon class="text-icon">exit_to_app</mat-icon>
4-
Log out
5-
</button>
6-
</div>
1+
<div fxLayout="row" fxLayout.md="column" fxLayoutAlign="center center">
2+
<div>
3+
<button mat-raised-button color="primary">
4+
<mat-icon class="text-icon">exit_to_app</mat-icon>
5+
Log out
6+
</button>
7+
</div>
78

8-
<div>
9-
<mat-form-field>
10-
<input matInput placeholder="Name" name="name" required />
11-
</mat-form-field>
9+
<div>
10+
<mat-form-field>
11+
<input matInput placeholder="Name" name="name" required />
12+
</mat-form-field>
13+
</div>
1214
</div>
1315

1416
<div>

src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
88
import {FlightModule} from './flight/flight.module';
99
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
1010
import {AuthInterceptorService} from './core/auth-interceptor.service';
11+
import {FlexLayoutModule} from '@angular/flex-layout';
1112

1213
@NgModule({
1314
declarations: [
@@ -21,7 +22,8 @@ import {AuthInterceptorService} from './core/auth-interceptor.service';
2122
MatIconModule,
2223
BrowserAnimationsModule,
2324
FlightModule,
24-
HttpClientModule
25+
HttpClientModule,
26+
FlexLayoutModule
2527
],
2628
providers: [
2729
{

0 commit comments

Comments
 (0)