Hi, while using AngularJs. one would invoke the function say *angular.forEach, *It has the namespace *angular*
In the source code https://github.com/angular/angular.js/blob/master/src/Angular.js#L208 I can find the variable instantiation under *angular = window.angular || (window.angular = {}),* and also the definition of the forEach function. However, I couldn't find any place where that namespace angular is assigned. Can anyone explain me how this was done? And what is the design pattern here? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
