Home AngularJS Material custom breakpoints
Reply: 0

AngularJS Material custom breakpoints

Vladimir Isayev
1#
Vladimir Isayev Published in 2017-12-07 19:01:46Z

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.bigScreen=big
    });
    $scope.screenIsSmall=$mdMedia('sm');
    $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.292861 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO