Home AngularJS Material custom breakpoints
Reply: 0

AngularJS Material custom breakpoints

user539 Published in July 16, 2018, 6:27 am

How to create custom breakpoints in AngularJS Material? On the website, they are saying that you can set "customQuery" using $mdMedia service:

app.controller('MyController', function($mdMedia, $scope){
    $scope.$watch(function(){return $mdMedia('lg');}, function(big){
    $scope.customQuery=$mdMedia('(min-width: 1234px)');
    $scope.anotherCustom=$mdMedia('max-width: 300px');

How to understand this?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.342648 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO