angularjs scope inheritence primitive object

JavaScript Prototypal Inheritance It is important to first have a solid understanding of JavaScript prototypal inheritance, especially if you are coming from a server-side background and you are more familiar with classical inheritance. So let’s review that first. Suppose parentScope has properties aString, aNumber, anArray, anObject, and aFunction. If childScope prototypically inherits from parentScope, we…

angular js module call order run() config()

Here’s the calling order: app.config() app.run() directive’s compile functions (if they are found in the dom) app.controller() directive’s link functions (again if found) Here’s a simple demo where you can watch each execute (and experiment if you’d like). From Angular’s module docs: Run blocks – get executed after the injector is created and are used…