0

I have a set of nested views and load under the previous view. I am trying to create a scrollTo directive that will scroll to the start of the view when the view has loaded, but I can't get it to work. I need to execute my code after the view has loaded and all the html/images have been downloaded.

Does anyone know of a way to do that?

r3plica
  • 12,148
  • 20
  • 96
  • 242

1 Answers1

0

You can wait for the content to be loaded using angular.element(callback):

Please refer : https://stackoverflow.com/a/30258904/1904479

Kailas
  • 6,928
  • 3
  • 44
  • 63