For getting current $scope outside controller I can use,
 var $scope = angular.element('[ng-controller=ProductCtrl]').scope();
How to get the current controllers $sce?
For getting current $scope outside controller I can use,
 var $scope = angular.element('[ng-controller=ProductCtrl]').scope();
How to get the current controllers $sce?
 
    
    The $sce is a service so you can access it using the injector:
var elem = angular.element('[ng-controller=ProductCtrl]');
console.log("$scope: ",elem.scope());
console.log("$sce: ",elem.injector().get('$sce'));
 
    
    Better use a service to pass data between controllers or other services. Services act like a Singleton.
Here is an example
 
    
     
    
    For now my fix is,
window.trustAsHtml = $sce.trustAsHtml
