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 |
What is scope hierarchy in angularjs?
What is httpclient?
What does a router.navigate do?
What are “streams” in node.js? Explain the different types of streams present in node.js?
What is jit and aot?
What is the need for typescript in angular 2?
What is data binding and its types?
How to declare a component in angular 2?
How to handle 'loading chunk failed' error in angularjs application?
What are the modules in angular 2?
What is the use of canactivate in angular?
Is typescript an oop?