Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using angularJs for developing an Hybrid Mobile App for IOS and Android. I am getting JSON data like :
<pre>[{"EventId":101,"Title":"No title","Date":"9/8/2015","Time":"12:00 AM","Location":""},{"EventId":120,"Title":"My First Event","Date":"9/15/2015","Time":"12:00 AM","Location":""}]</pre>

My question is that I have one button, click on that button I need to short my data based on current date. If i click on a button it should show me only that record that matched the current date.
Posted
Comments
Konstantin A. Magg 29-Jan-16 12:34pm    
Have you tried filters? Take a look at the example on the bottom of this page: https://docs.angularjs.org/api/ng/filter/filter

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900