0

How to return the value from meteor.call. Please refer the code for more detail.

highlightStroke: "rgb(15,138,12)",
data:Meteor.call('dataCallYou', Session.get('areaHome'), function(error,you){
        if(_.isEmpty(you)){
          you=[0,0,0,0]
        }
      })

1 Answers1

0

Meteor.call is an asynchronous task.

See How do I return the response from an asynchronous call?

ghybs
  • 47,565
  • 6
  • 74
  • 99