For getting current $scope outside controller I can use,
var $scope = angular.element(\'[ng-controller=ProductCtrl]\').scope();
How to get
The $sce is a service so you can access it using the injector:
$sce
var elem = angular.element('[ng-controller=ProductCtrl]'); console.log("$scope: ",elem.scope()); console.log("$sce: ",elem.injector().get('$sce'));
example fiddle