Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

AngularJS: How to get the value of selected list item

1) You have to check selected value with the current one, and show messages if they are equal

2) Please remove condition of the date in the server code. So instead of:
prevar lastEventDateText = lastEventDate.toISOString();

messages = Collection.query('database_id', 'messages', {
'criteria': {
'createdAt': {
'$gt': {
'$date': lastEventDateText
}
}
},
'sort': 'createdAt'
}, MASTER_KEY);/pre
use JS below:
prevar lastEventDateText = lastEventDate.toISOString();

messages = Collection.query('database_id', 'messages', {
'sort': '_createdAt'
}, MASTER_KEY);/pre

Gopi .
Posts: 0
Joined: Thu May 18, 2017 10:09 am

AngularJS: How to get the value of selected list item

Hi,

Thanks for sharing a great article on AngularJS!!

I think there are lots of people who struggle to learn AngularJS.

I have also tried my best to Cover all the Topics of AngularJS which will be helpful to people who are stepping into AngularJS.

I will appreciate if you can take a few minutes to provide your feedback for the same, it would be a great help!!
Complete Topics of AngularJS

Thanks a lot!!

Return to “Issues”