How would you control the size of an element on resize of the window in a component?
Answer Posted / 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 View All Answers
How to create angularjs filter which outputs html?
Which version you are using js?
How to get and log an error in angular 4?
Give the example of angularjs strings?
What is the latest angular?
Angularjs dependency injection of value inside of the module.config?
What is the latest version of angular?
How to use primeng in angular 4?
How can primeng be used with angular2?
How to enable html5 mode in angular 1.x?
What is a dynamic route in angularjs and how do you implement it?
How to implement a datagrid table with angular 2 and primeng?
How an object or function can get a hold of its dependencies?