Angularjs slider with ng-change

I have input slider like that

<input ng-model="value" type="text" id="mySlider1" slider ng-change="fun()"/>

this slider have values from 1 to 10

i need to get this value by ng-model and perform fun() with angularjs controller when change slider.

angularjs controller

$scope.fun = function () {
               console.log($scope.value)
         };

You can place a watcher on the model like this -

$scope.$watch("value", function(){
    // do whatever you need with the just-changed $scope.value
});