Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Created November 16, 2014 20:17
Show Gist options
  • Save KamilLelonek/6958fe5c28d8b1516278 to your computer and use it in GitHub Desktop.
Save KamilLelonek/6958fe5c28d8b1516278 to your computer and use it in GitHub Desktop.
Angular-compiled partials from HTML templates
angular.module('partials', [])
.run(['$templateCache', function($templateCache) {
return $templateCache.put('/partials/content.html', [
'',
'<div class="main-content">',
' <div ui-view="Main"></div>',
' <div class="push"></div><span ng-include="\'/partials/footer.html\'"></span>',
'</div>',''].join("\n"));
}])
.run(['$templateCache', function($templateCache) {
return $templateCache.put('/partials/footer.html', [
'',
'<footer id="footer" sh-footer ng-class="{\'footer--show\' : endReached}">',
' <div class="container">',
' <p><span translate="footer.rights"></span><span>&nbsp;StudentHunter Team.</span></p>',
' </div>',
'</footer>',''].join("\n"));
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment