Skip to content

Instantly share code, notes, and snippets.

@4ley
Last active October 22, 2015 21:36
Show Gist options
  • Save 4ley/ce9bd1f73dac9ab6397f to your computer and use it in GitHub Desktop.
Save 4ley/ce9bd1f73dac9ab6397f to your computer and use it in GitHub Desktop.
ng-admin templateUrl for custom header
// declare a function to run when the module bootstraps (during the 'config' phase)
app.config(['NgAdminConfigurationProvider', function(nga) {
// create an admin application
var admin = nga.application('Name')
.baseApiUrl('http://jsonplaceholder.typicode.com/'); // main API endpoint
admin.header('<div header></div>');
}]);
app.directive('header', function() {
return {
templateUrl: 'views/header.html'
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment