Wrapping Angular components in an Immediately Invoked Function Expression in order to removes variables from the global scope. This helps prevent variables and function declarations from living longer than expected in the global scope, which also helps avoid variable collisions.
Wrapping Angular components in an Immediately Invoked Function Expression in order to removes variables from the global scope. This helps prevent variables and function declarations from living longer than expected in the global scope, which also helps avoid variable collisions.