jacopotarantino / angular-match-media

Angular module to use Bootstrap3 media queries in your angular controllers.
https://jack.ofspades.com/angular-matchmedia-module/
Other
135 stars 37 forks source link

wrong number of parameters on onChange docs #28

Closed gvelo closed 7 years ago

gvelo commented 8 years ago

in readme.md the onChange method should be

angular.module('myApp', ['matchMedia'])
.controller('mainController', ['screenSize', function (screenSize) {
  $scope.isMobile = screenSize.onChange($scope,'xs, sm', function(isMatch){
    $scope.isMobile = isMatch;
  });
}]);
jacopotarantino commented 7 years ago

Sorry, I should have merged this one first. The PR I looked at just before this one fixed the same issue. Going to close this as resolved but thanks for the good work!