meteor - Reactive cursor without updating UI for added record -


i trying make newsfeed similar twitter, new records not added ui (a button appears new records count), updates, change reactively ui.

i have collection called newsitems , use basic reactive cursor (newsitems.find({})) feed. ui blaze template each loop. subscription done on route level (iron router).

any idea how implement kind of behavior using meteor reactivity ?

thanks,

the trick have 1 more attribute on newsitem collection show boolean. newsitem should have default value of show false

the each loop should display feeds show == true , button should show count of items show == false

on button click update elements in collection show == false show = true make sure feeds shown .

as , when new feed comes button count increase reactively .

hope helps


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -