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 |
Is react easier than javascript?
What makes angular.js better?
How would you make use of ngoninit()?
New html element?
What is the main thing that you would need to change if you were migrating from angularjs 1.4 to angularjs?
What is a provider in angular?
How to validate password and confirm password in angular 4?
What is default scope in a angular directive?
What is Restangular?
What does ‘ng-serve’ do?
What is difference between $timeout and window.setTimeout in AngularJS?
What is the aot?