ng-change and ng-click not working in toggle button bootstrap-toggle
<p>ng click or ng-change not working in toggle button. I use toggle-bootstrap package here</p>

<pre><code>&lt;input checked 
       data-toggle="toggle" 
       data-size="small" 
       type="checkbox"
       data-on="16x9" 
       data-off="4x3"
       ng-true-value="'16x9'"
       ng-false-value="'4x3'"
       ng-model="slideMode" 
       ng-change="setSlideMode()"&gt;
</code></pre>

<p>Angular code</p>

<pre><code> $scope.slideMode = '16x9';
 $scope.setSlideMode = function(){
        console.log($scope.slideMode);
 };
</code></pre>