I am not setting any HTML5MODE, every other thing by default.

If as you said. i can read via the document (HTML5mode enable false by 
default)

Is it a bug? (the angularjs does not working as the document described)

zixu mo於 2014年12月22日星期一UTC+8上午10時49分45秒寫道:
>
> '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.

Reply via email to