Open kirkbushell opened 7 years ago
No errors, no problems. I can get the data option to work absolutely fine, but it never seems to make the request to the server for me to make the selection.
This is my javascript code:
Vue.component('account-new', { components: { typeahead }, data() { return { "asyncTemplate": '<div>{{ item.name }}</div>', }; }, methods: { callback: function(items) { console.log(items); } } });
And my HTML...
<typeahead placeholder="Select owner" :template="asyncTemplate" key="items" src="/user?q=" :on-hit="callback"></typeahead>
The callback is never called, and requests are never made - what am I missing?
Would also like to add that if I specify template-name, it results in a partials not defined error.
The docs are seriously lacking on this particular component.
Change src="..." to async="..." maybe work.
src="..."
async="..."
in vue1 you need to put a name to the template (use template-name prop).
No errors, no problems. I can get the data option to work absolutely fine, but it never seems to make the request to the server for me to make the selection.
This is my javascript code:
And my HTML...
The callback is never called, and requests are never made - what am I missing?
Would also like to add that if I specify template-name, it results in a partials not defined error.
The docs are seriously lacking on this particular component.