Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

How to reset content from ng-model in a list

$
0
0

@atig wrote:

I am trying to implement a search which is something similar to this codepen

The problem in this codepen (and for me) is that when I type something it filters correctly, but when I backspace (and delete) what I have typed the list doesn't go back to being empty - as it was before I started typing the search query.

I have tried resetting $scope.data = {} when the search query length is zero, but that doesn't work.

Any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>