How to get width of the app

I want to create a square and the width must be the same as the width as the app. So if the app width is 400 … I want to create a sqaure 400 x 400 …

Is there a function to get the width?

Search for $window.innerWidth