My journey into the world of Angular JS has just begun. While I can put together an Angular module, I find myself with a myriad of questions regarding the inner workings of Angular.
- How exactly does $scope function? I know that a root scope is created when ng-module is declared, representing the DOM and monitoring it for changes in properties, events, etc. But how is this monitoring mechanism actually implemented?
- How can we ensure that the scope object is ready as soon as the page loads, allowing the controller to make use of it? How are access permissions managed with the scope object; are there instances where a controller may not have access to a specific variable?
- Under what circumstances would one need to explicitly utilize an injector in Angular?
- Could you elaborate on the lifecycle of an angular app? Are there distinct client-side versus server-side components, or is it completely client-side? For example, even when using ng-repeat, is everything still processed on the client side?