0

I have a div with lot of components. On button click, the focus should reach to the bottom of the div. How is it possible in Angular 2?

Hashim
  • 5
  • 5

1 Answers1

0

Use viewchild and nativeelement. Then you will get an element, and you will able to use .focus() method. follow viewchild and nativeelement. https://stackoverflow.com/a/45344187/4834833 It will help you.

mukund patel
  • 1,039
  • 10
  • 31