Angular directive to remove elements based on media query match
1 person uses it
Author: 2837910?v=3 ah450

Angular media

Remove and include elements with media queries!


bower install --save ngmedia


angular.module('myApp', ['angularMedia'])

<div data-if-media='screen and (min-width: 600px)'></div>

Element is removed if media query is false.

Browser support

uses window.matchMedia compatibility

comments powered by Disqus
This page was last updated about 3 years ago.