How would you control the size of an element on resize of the window in a component?



How would you control the size of an element on resize of the window in a component?..

Answer / Chandan Mishra

To control the size of an element on window resize, you can use Angular's AfterViewInit lifecycle hook and event listeners to handle the window resizing event. You may also use CSS media queries for more complex responsive design.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Is react easier than javascript?

1 Answers  


What makes angular.js better?

1 Answers  


How would you make use of ngoninit()?

1 Answers  


New html element?

1 Answers  


What is the main thing that you would need to change if you were migrating from angularjs 1.4 to angularjs?

1 Answers  


What is a provider in angular?

1 Answers  


How to validate password and confirm password in angular 4?

1 Answers  


What is default scope in a angular directive?

1 Answers  


What is Restangular?

1 Answers  


What does ‘ng-serve’ do?

1 Answers  


What is difference between $timeout and window.setTimeout in AngularJS?

1 Answers  


What is the aot?

1 Answers  


Categories