I'm just starting out using TypeScript with Angular. I am looking through some sample applications, and sometimes I see a .js that starts with an IIFE, while other times the file starts with a module declaration.
Can anyone explain when one of these should be used over the other?