search

Home  >  Q&A  >  body text

angular.js - A problem encountered with Angular directive, first aid

I used NodeJS to make a crawler, crawl data from the web page and return it in the form of json,

After using $http to get it, I now want to escape and ask for standard page display. This is what is written on my page

Then js part

The content after I output scope is

Originally, the data should be obtained through scope.newsContents.content, and then displayed through jQuery in .html(), but the following result occurred

is directly undefined, let alone get the content below. I tried to output other things in scope and it worked

![Picture uploading...]

Please help me solve this problem, I would be very grateful.

世界只因有你世界只因有你2830 days ago562

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-15 16:54:07

    Thanks to my friend for his patient answer, I slowly figured it out

    reply
    0
  • Cancelreply