Viewport utilities for AngularJS