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 |
Difference between var, let, const?
What is angular 4? What’s new in angular 4?
What is a guard in angular?
What is the scope of $scope?
Can you explain angular js boot process?
Explain host decorator in angular 2?
What is shared module?
How to create a service using factory in angularjs?
What do you understand by linking function?
What are ng-include and ng-click directives in angularjs?
Explain directive in AngularJS?
What is angular material?