search

Home  >  Q&A  >  body text

angular.js - How does angular get html content and store it somewhere else?


Inside the red box is a loop of content, which is implemented using $http and ng-repeat.
My requirement is that you can click "View More" How to get the content in the blue box and assign it to a pop-up layer?
I don’t quite understand the injection service. I hope you can give me some brief code and be more detailed. Thank you!

某草草某草草2872 days ago583

reply all(1)I'll reply

  • 阿神

    阿神2017-05-15 16:58:16

    What does the elastic layer here refer to?
    If the pop-up layer and the blue box are in the same controller, save the object in the controller's scope and bind the object directly to the pop-up layer.

    reply
    0
  • Cancelreply