I would like to write a code that does something similar to a google search. You start typing into an input field, iterate through an array and push the results into an empty array.
Now the thing is that the code works except for one issue. When the page is loaded the empty array that's supposed to hold the search results is filled with the content of the original array holding the information. But I would like to be it empty when the page loads. Can anyone help me fix the problem? Here is the code: http://plnkr.co/edit/ELf6PDH93eEEXAPEzJEt?p=preview -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
