<div class="content" id="content" ng-view autoscroll="true" ng-class="{loading: loading}">
<?= $content ?>
</div>
App.run(function($location, $templateCache){
$templateCache.put($location.url(), angular.element('#content').html());
});
angular.module("templates-service", []).run(function($templateCache) {
// here should go on the server for files and .replace(/\n/g, '\\n').replace(/'/g, "\\'")
$templateCache.put('/partials/entity-selector.html', '<div>...</div>');
});
angular.module("my-app", [..., "templates-service"]) ...
commented on October 3rd 19 at 03:17Find more questions by tags AngularSearch engine optimization