I attempted to implement a basic layout/flex example from the Angular material design demo site:
https://material.angularjs.org/latest/layout/container
However, no matter what I try, the layout does not function as described and simply arranges the four inner divs vertically with 100% width. Even after adjusting the code so that the columns have a width of 50%, it still does not work. Below is the code I used:
<div layout="column">
<div style="background-color: #3e8f3e" flex="50">First item in column</div>
<div style="background-color: #00b3ee" flex="50">Second item in column</div>
</div>
<div layout="row">
<div style="background-color: #eea236" flex="50">First item in row</div>
<div style="background-color: #ce8483" flex="50">Second item in row</div>
</div>
Below is what I see as output:
https://i.sstatic.net/hZtUZ.png
Any ideas on what might be going wrong?
Here is the jsfiddle link for reference: