I have a problem when I try print a json parameter in a view, when I print 
a query on a view I list appears in JSON but not html.

Printed:

[{"id":1,"created_at":"2015-01-19T12:31:52Z","title":"Its a 
new","description":"<p>ksflksdjflskdjflskjdflksjdflksjdlfksjdlf</p>\r\n<p>&nbsp;</p>\r\n<p>kjshfkjsdfn</p>\r\n<p>&nbsp;</p>\r\n<p>jdsfksjdfs</p>"},{"id":6,"created_at":"2015-01-20T09:38:41Z","title":"Its
 a new 2","description":"<p>It is a new</p>"}]

But should print:


Its a new!!

ksflksdjflskdjflskjdflksjdflksjdlfksjdlf


Its a new2

It is a new


I created a factory resource in my service.js ((coffeescript))


.factory "NewsArticles",  ["$resource", ($resource) -> $resource 
"/news_entries"]



And in my controller have:  ((coffeescript))


angular.module('myApp').controller 'NewsArticlesCtrl', [  "$scope", 
"NewsArticles"
  ($scope, NewsArticles) ->
    $scope.articles = []
    NewsEntries.query {}, (data)->
      angular.copy data, $scope.articles


In my view: 


<ul>
     <li ng-repeat="article in articles">

     <h1>{{article.title}}</h1>
      <article>{{article.description}}</article>

</li>

</ul>


Anybody can help me? 


Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to