| 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