Wednesday, September 11, 2013

Self executing functions with AngularJS

Self executing functions with AngularJS

What are the benefits of using self executing functions with a framework,
such as, Angular?
I am new to Angular but my understanding thus far is the module-based
design gives most of the benefits that the Self executing function gives.
What am I missing? Is it just a matter of style?
Here is an example by Ben Nadel. I really like the style but want to
understand if there are any gains by writing Angular code this way or if
it is mostly a style choice.

No comments:

Post a Comment