Using the Ionic grid to create a complex UI
Since this chapter is about Ionic components, I will mention that one of my favorite components is the Ionic grid—a really useful component to lay out your application. Based on Flexbox, it is very similar to Bootstrap's grid. The documentation on the Ionic grid says:
"The grid is composed of three units—a grid, row(s) and column(s). Columns will expand to fill their row and will resize to fit additional columns. It is based on a 12 column layout with different breakpoints based on the screen size. The number of columns and breakpoints can be fully customized using Sass."
We will create a complex UI structure with very minimal code. The app will look like the following image:

Getting ready
Just like the previous examples, you just need the Ionic CLI to work on and run this example app.
How to do it...
Here are the instructions to create the example app:
- Create a new
IonicGrid
app using theblank
template, as shown, and go into theIonicGrid
folder:
$ ionic...