what is the difference between deferred.resolve(data); and deferred.resolve(); in angularJS service calls?
<p>I found 2 variation like 
1. deferred.resolve(); 
2. deferred.resolve(data);</p>

<p>after service response. What is the difference between 2. Which one I have to use strictly.</p>