Angular 6: How can we add a function to the global namespace? : <p>My requirement is that I need to add a function to the global namespace in an Angular 6 project. This function should then be able to be called from the browser console.</p>
