Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

computed property not updating automatically #216

Open
ghost opened this issue Jun 28, 2015 · 2 comments
Open

computed property not updating automatically #216

ghost opened this issue Jun 28, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2015

Here is the fiddle: https://jsfiddle.net/pc2gg27y/5/

The image src should ideally update when the college model changes! But it does not!

What am I doing wrong?

@ghost ghost mentioned this issue Jun 28, 2015
@azamat-sharapov
Copy link

You need to have full structure of $data like so: https://jsfiddle.net/pc2gg27y/7/

@willishq
Copy link

I have asked a question on Stack Overflow and thought it best to ask here too, it's regarding dealing with empty filter results:

<input v-model="search">
<ul>
    <li v-repeat="photo in photos | filterBy search in 'name'">
        <img src="{{ photo.src }}" alt="{{ photo.name }}">
    </li>
    <li v-if="!photos.length">
        No results, sorry!
    </li>
</ul>

if there are no filtered results, how do I get the 'no results, sorry' message to display?

http://stackoverflow.com/questions/32743572/vue-js-empty-filter-results

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants