I upgraded to Angular 9 and am trying to use FlexLayout. The layout example I am following from angularjs.org is not working. https://material.angularjs.org/1.1.1/layout/container
My output is in this format which is not right:
[first item in row ][first item in column ]
[second item in row][second item in column]
instead of
[first item in row ][second item in row][first item in column ]
[ ][ ][second item in column]
To test this I created a plain vanila angular & material 9 app with a module called Flexer.
Here is my angular template app flexer.component.html file:
<div layout="row">
<div class="box1" flex>First item in row</div>
<div class="box2" flex>Second item in row</div>
</div>
<div layout="column">
<div class="box1" flex>First item in column</div>
<div class="box2" flex>Second item in column</div>
</div>
Here is my vanila angular app flexer.component.ts file:
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-flexer',
templateUrl: './flexer.component.html',
styleUrls: ['./flexer.component.scss']
})
export class FlexerComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
Here is my flexer flexer.component.scss style file:
:host {
display: flex;
width: 100%;
.box1 {
color: black;
background-color: skyblue;
}
.box2 {
color: white;
background-color: rgb(78, 47, 255);
}
}
Here is my output
Eventually I wanted my second div container to be shown under the first like this:
[first item in row ... ]
[second item in row... ]
[first item in 1scolumn][second item in 2nd column]
Appreciated any help, sorry I dont have a live angular9 demo to display this like plunker or stackblitz they are not yet at version 9.