Skip to content

Instantly share code, notes, and snippets.

@bclinkinbeard
Created July 3, 2014 16:05
Show Gist options
  • Save bclinkinbeard/9b4c5d90a8f6fbd1ff40 to your computer and use it in GitHub Desktop.
Save bclinkinbeard/9b4c5d90a8f6fbd1ff40 to your computer and use it in GitHub Desktop.
Browserify with Angular
'use strict';
exports.name = 'header';
exports.component = function () {
return {
restrict: 'E',
template: require('./template.html'),
controller: require('./HeaderController')
};
};
// then used like .directive(header.name, header.component)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment