2 ms·
Why does it have an IFFE on the controllers? This isn't a browser environment where we have to worry about files cluttering a global namespace. Each file is its
by benatkin 11y ago
Why does it have an IFFE on the controllers? This isn't a browser environment where we have to worry about files cluttering a global namespace. Each file is its own module where it has its own namespace. (Also this isn't needed for client-side development anymore unless you aren't using a build tool.)
- leemalmac 11y agoI'm not a JS expert. Can you suggest the better way? I know that controllers are sandboxed, but I still like to add some 'namespacing'