title: $sce.trustAsResourceUrl is not working
body: <p>I am working with iframe in my project just tried to open url inside my app through iframe , but its not working at my end , please have a look and provide your valuable suggestion.I will be very thank full to you .</p>
  
  <p>Here is my controller code :-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>app.controller('IframeCtrl', function($http, $scope, $ionicPopup, $state,
    $ionicLoading, LocalStorage, $sce) {
  
   $scope.customUrl = $sce.trustAsResourceUrl('http://www.magentomobileshop.com/demo/payu/index/payu?orderid='
     + LocalStorage.getData("orderid"));
  
   window.checkIframeUrl = function(curentUrl) {
    alert(curentUrl);
   };
   
  
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>My iframe.hml :-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ion-view view-title="PayU Money"&gt; &lt;ion-nav-bar
   class="bar-positive" align-title="center"&gt; &lt;/ion-nav-bar&gt; &lt;iframe
   src="{{customUrl}}" src="http://www.google.com"
   onLoad="checkIframeUrl(src);" scrolling="none" frameborder="0"
   height="600px" width="100%"&gt;&lt;/iframe&gt; &lt;ion-content&gt; &lt;/ion-content&gt; &lt;/ion-view&gt;</code></pre>
  </div>
  </div>
  
  I even try this link :- <a href="http://jsfiddle.net/W4WyL/4/" rel="nofollow">http://jsfiddle.net/W4WyL/4/</a></p>
  
  <p>here is what i try now as :-</p>
  
  <p>My conroller :-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> function($http, $scope, $sce) {
  
   
   var url="http://www.magentomobileshop.com/demo/payu/index/payu?orderid=100000030"
   
      $http.get($sce.trustAsResourceUrl(url)).success(function(data) {
       $scope.myData  = data;
       
      });
   
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>My new Html :-</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;div&gt;&lt;iframe
   ng-src={{myData}} frameborder="0"
   height="600px" width="100%"&gt;&lt;/iframe&gt; &lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Okay, i think this might be the issue that payU is a secured Url so this might not be getting open on iFrame but is there any way i can track url in window.open(), so that i can close the webview when i will be on that tracked Url. </p>
  
  <p>Thanks</p>