title: ZF2: Restful and image combination
body: <p>I am building a site using Zend Framework 2 and AngularJS. I have a restful webservice running in ZF2 and I use AngularJS on the client to access that webservice.</p>
  
  <p>Now I want to add a photo album to my site, and I have the following question around this subject:</p>
  
  <ul>
  <li><strong>How do I give the images to AngularJS? Should I just return a json with the links to the directories on the server. And then load it using <code>&lt;img src="" /&gt;</code>, or are there other, beter ways?</strong></li>
  </ul>