Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
App.directive('autocomplete', ->
return {
restrict: 'A',
link: ($scope, elem, attr) ->
console.log(attr.autocomplete)
elem.autocomplete({
serviceUrl: '/videos/autocomplete/' + attr.autocomplete
})
}
)
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.