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
  • 13,017
  • 23
  • 128
  • 290

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
  • 7,350
  • 3
  • 47
  • 63