Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active August 29, 2015 14:13
Show Gist options
  • Save simonmorley/8f00bf6976e3dbb670f2 to your computer and use it in GitHub Desktop.
Save simonmorley/8f00bf6976e3dbb670f2 to your computer and use it in GitHub Desktop.
var buildPage = function(data) {
var head = angular.element('head')
scope.custom_url = data.splash.custom_url;
scope.custom_css = data.splash.custom_css;
head.append($compile("<link ng-href='{{custom_url}}' rel='stylesheet' />")(scope));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment