'use strict';
var adminApp = angular.module('deyihome-admin', [
'ngRoute',
'adminControllers'
]);
adminApp.config(['$routeProvider', '$sceDelegateProvider',
function($routeProvider, $sceDelegateProvider) {
var newhost = 's-'+top.location.host;
console.log(newhost);
var static_prefix = top.location.protocol+'://'+newhost;
console.log(static_prefix);
$sceDelegateProvider.resourceUrlWhitelist([
'self',
'http://*.netroby.com/**',
'https://*.netroby.com/**'
]);
$routeProvider.
when('/home', {
templateUrl:static_prefix+'/a/index.origin.html',
controller:'home'
}).
when('/s-contractor', {
templateUrl: static_prefix+'/a/s-contractor.html',
controller: 's-contractor'
});
}
]);
I want load template from third party domain.
but it now working.
How can i do like this?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.