ionic factory not open other url
<p>i have an ionic modal that have button to allow user open other page
while this modal have jrcrop </p>

<p>my sample</p>

<pre><code>angular.module('ionicApp', ['ionic']).controller('cropCtrl', function($http,$scope, $ionicModal, $jrCrop) {
        $jrCrop.crop({
          url: 'img.jpg',
          width: 200,
          height: 200,
        })
        .then(function(canvas) {
          $ionicModal.fromTemplateUrl('result-cropped.html', function(modal) {
            $scope.modal = modal;

            modal.show().then(function() {
              document.querySelector('.cropped-canvas').appendChild(canvas);
            });
          });
        });

    }).factory("$jrCrop",["$ionicModal","$rootScope","$q",function(t,i,e)

{..........................
,openpage:function(){$scope.go('images');}
...................
    }]);
</code></pre>

<p>and i have error says</p>

<p>$scope is not defined</p>