Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AngularJS directive to use the jQuery Select2 plugin
app.directive 'selectPlugin', [ ->
{
restrict: 'A'
link: (scope, elem, attr) ->
angular.element(elem).select2 { placeholder: attr.selectPlugin }
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.