Make a web page with a folder of external files
问题 Previously, I used $sce.trustAsHtml(aString) to inject a string (eg, <html>...</html> ) to a template <div ng-bind-html="content"></div> to display a graph when loading a generated URL: .state('urls', { url: '/urls/{id}', template: '<div ng-bind-html="content"></div>', controller: 'UrlCtrl', resolve: { url: ['$stateParams', 'urls', function ($stateParams, urls) { return urls.get($stateParams.id); }] } }) app.controller('UrlCtrl', ['$sce', '$scope', 'url', function($sce, $scope, url) { $scope