in the 12th chapter of the description of variable objects, we already know that the data of an execution context (variables, function declarations, and formal parameters of functions) is stored as attributes in the variable object. We also know
ObjectiveIn the 12th chapter, in the description of variable objects, we already know that the data (variables, function declarations, and function parameters) of an execution context are stored as attributes in the variable object.
We also know
Learning the Angularjs for a long time, and recently looking back at this part of the instruction, I feel more in depth than when I first started to learn, especially the scope of the instruction.Originally read the "Angularjs authoritative guide"
PrefaceIn the description of the variable object in Chapter 12th, we already know that the data of the execution context (variables, function declarations, and function parameters) are stored in the variable object as attributes.
At the same time,
Deep understandingJavaScriptSeries ( -): Scope chain(Scope Chain)ObjectiveIn the 12th chapter of the description of variable objects, we already know that the data of an execution context (variables, function declarations, and formal parameters of
Ref: 1190000002773689Whenever an instruction is created, there is an option to inherit its own parent scope (typically the scope or root scope ($rootScope) provided by the external controller), or to create a new scope of its own, of course
Whenever an instruction is created, there is an option to inherit its own parent scope (typically the scope or root scope ($rootScope) provided by the external controller), or to create a new scope of its own, of course angularjs for our
Whenever an instruction is created, there is a choice whether to inherit its own parent scope (generally the scope provided by the external controller or the root scope ($rootScope), or to create a new own scope, Of course Angularjs provides three
In the previous article, I ended the creation of objects and finally introduced the issue of scope chain and execution environment. When I have a deeper understanding of this knowledge, I will look back at the jQuery source code to know how
Scope of angularjs learning, angularjss.pdf
Introduction
Scope is the bond between HTML (View) and JavaScript (Controller) applications.
Scope is an object that stores the application data model. It has available methods and attributes.
Scope can be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.