we are migrating old java script projects into Angular 10. There are many JavaScript functions calling from body onload. What is the best way to call such functions in Angular 1