【发布时间】:2018-05-21 23:18:30
【问题描述】:
如何在 AngularJS Material 中创建自定义断点?在website 上,他们说您可以使用 $mdMedia 服务设置“customQuery”:
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');
});
这个怎么理解?
【问题讨论】:
标签: angularjs angular-material