Core
Start execution
1 Use $apply()
to enter the Angularjs execution context from the normal JavaScript context. In most cases (e.g., in the controller, the service), $apply have been used to handle the execution of the corresponding instruction for the current event. You only need to execute your own if you use a custom event callback or a callback that uses a third-party class library$apply
scope.$apply(stimulusFn)
, the STIMULUSFN here is the function you want to execute in the context of angularjs execution
Scope
The scope is a middle zone, which organizes the model to pass to the view, passing the browser event to the controller
Controller
The control code behind the view is the controller. Its main work is to construct the model and send the model and callback methods together to the view
Model
View
A view can be seen as a "projection (projection)" of scopes on the template (HTML).
Instructions
Directive allows you to extend the HTML representation in a declarative way
Filters FilterModules and Injectors
A module is a way to configure the injector instance factory, which we also call the "provider (provider)". (not understood here)
ANGULARJS Development Guide Read 02