What is the best solution to solve requestanimationframe is not defined in angular?



What is the best solution to solve requestanimationframe is not defined in angular?..

Answer / Vandna Arya

The 'requestAnimationFrame' is a method provided by the browser, but it may not be supported in some older browsers. To fix this issue, you can use polyfill for 'requestAnimationFrame'. In Angular, add 'es6-shim' and 'web-animations-js' to your polyfills.ts file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is pipe in networking?

1 Answers  


What is the use of @Input and @Output?

1 Answers  


What is transclusion in angular?

1 Answers  


What is in angular url?

1 Answers  


What are static and public in angular?

1 Answers  


Explain how routing works in angularjs?

1 Answers  


What is the difference between angularjs and angular 2?

1 Answers  


Is angularjs difficult to learn?

1 Answers  


Is angular difficult to learn?

1 Answers  


When to use factory?

1 Answers  


What is i18n and L10n?

1 Answers  


Can you define multiple restrict options on a directive?

1 Answers  


Categories