This is a default security precaution in AngularJS. Please see the details: https://docs.angularjs.org/api/ng/service/$sce
To disable the 'Strict Contextual Escaping' compeletly you can define this in your app.js file
angular.module('myAppWithSceDisabledmyApp', []).config(function($sceProvider) {
// Completely disable SCE. For demonstration purposes only!
// Do not use in new projects.
$sceProvider.enabled(false);
});
However they don't recommend. But you may use for a spesific controller like this:
var myAppControllers = angular.module('myAppControllers', []); ScorpAppControllers.controller('HomeCtrl', ['$scope', 'Home', function ($scope, Home) {
$scope.Home = Home.query(); }]).config(function($sceProvider) {
$sceProvider.enabled(false); });