Created
June 13, 2013 20:21
-
-
Save hunterloftis/5777012 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.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