Created
July 3, 2014 16:05
-
-
Save bclinkinbeard/9b4c5d90a8f6fbd1ff40 to your computer and use it in GitHub Desktop.
Browserify with Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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