Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('typeahead', [function () {
- return {
- restrict: 'A',
- link: function (scope, elem, attrs, controller) {
- elem.typeahead({
- name: 'produtos',
- local: ['Keynes', 'Mises']
- })
- elem.on('typeahead:autocompleted typeahead:selected', function (datum) {
- elem.val(datum.value)
- })
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement