Jake Ryan Smith

Results 9 comments of Jake Ryan Smith

It looks like the update watcher triggers the change event which would in turn trigger the update watcher? So this would go on forever.

I've been messing with this for the last few min, this is what I have so far: https://jsfiddle.net/9Lwo9r8y/

Oh sorry. What I had wasn't working that great anyway. Does this have to be a directive? I think the problem is that you set up an onChange listener on...

This seems to work: ``` Vue.directive('select2', { bind: function () { var vm = this.vm; var key = this.expression; var select = $(this.el); select.select2(); select.on('change', function () { vm.$set(key, select.val());...

I don't see anything wrong with the changes you made. It actually looks a lot cleaner to me. Using the 'options' directive is the recommended way of filling a select...

Thanks for your reply! I'm a little confused with what you mean by "side effect filter". Do I still need to have a custom filter to do this or can...

Ok I think I figured it out. I needed to do this: ``` {{ result.title }} ``` It works now. Thanks!

Ahh I see what I was doing wrong now. I was declaring each event listener separately (with multiple instances of 'v-on') instead of putting them all under one and separated...