Skip to content

Instantly share code, notes, and snippets.

@hunterloftis
Created June 13, 2013 20:21
Show Gist options
  • Save hunterloftis/5777012 to your computer and use it in GitHub Desktop.
Save hunterloftis/5777012 to your computer and use it in GitHub Desktop.
.directive('sdwTopbarLeft', function() {
return {
restrict: 'EA',
require: '^sdwTopbar',
transclude: true,
template: '<div class="sdw-topbar-left" ng-transclude></div>',
link: topbarLeftLink
};
function topbarSideLink(scope, element, attrs, controller) {
var classes = (attrs['class'] || '').split(' ');
classes.forEach(function(cls) {
element.addClass(cls);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment