title: AngularJS - how to display values from API at the frontend
body: <pre><code>(function(angular, undefined) {
      'use strict';
      angular
          .module('erste.cafe-erstecb', ['angular-nicescroll', 'truncate'])
          .factory('CafeErstecb', function($resource, urls) {
              return $resource(urls.articlesApi, {
                  size: '10',
                  lang: 'cs',
                  tags: 'Inovace'
              }, {
                  query: {
                      isArray: false
                  }
              });
          })
          .directive('gridCafeErstecb', function(flash, CafeErstecb) {
              return {
                  restrict: 'E',
                  replace: true,
                  link: function(scope) {
                      CafeErstecb.query(function(response) {
                          console.log(response);
                          //$scope.result = response;
                      });
                  },
                  templateUrl: 'app/cafe-erstecb/grid-cafe-erstecb.tpl.html'
              };
          });
  })(window.angular);
  </code></pre>
  
  <p>I have problem to display my values from API at the frontend. Im using factory. Full <strong>API</strong>: <br>
  <a href="http://www.erstecorporatebanking.cz/api/v1/content/?size=20&amp;lang=cs&amp;tags=Inovace" rel="nofollow">http://www.erstecorporatebanking.cz/api/v1/content/?size=20&amp;lang=cs&amp;tags=Inovace</a></p>