How can I define an AngularJS service using a TypeScript class that doesn't pollute the global scope? How can I define an AngularJS service using a TypeScript class that doesn't pollute the global scope? typescript typescript