Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

format
Source Link
Reeno
  • 5.7k
  • 11
  • 40
  • 52

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

Scope characteristicsScope characteristics

  1. Scopes provide APIs ($watch) to[enter image description here][1]toenter image description here observe model mutations.
  2. Scopes provide APIs ($apply) to propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event handlers).
  3. Scopes provide context against which expressions are evaluated.

For example {{username}} expression is meaningless, unless it is evaluated against a specific scope which defines the username property.Scope is the glue between application controller and the view.

https://i.sstatic.net/eEkVF.pnghttps://i.sstatic.net/eEkVF.png

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

Scope characteristics

  1. Scopes provide APIs ($watch) to[enter image description here][1] observe model mutations.
  2. Scopes provide APIs ($apply) to propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event handlers).
  3. Scopes provide context against which expressions are evaluated.

For example {{username}} expression is meaningless, unless it is evaluated against a specific scope which defines the username property.Scope is the glue between application controller and the view.

https://i.sstatic.net/eEkVF.png

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

Scope characteristics

  1. Scopes provide APIs ($watch) toenter image description here observe model mutations.
  2. Scopes provide APIs ($apply) to propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event handlers).
  3. Scopes provide context against which expressions are evaluated.

For example {{username}} expression is meaningless, unless it is evaluated against a specific scope which defines the username property.Scope is the glue between application controller and the view.

https://i.sstatic.net/eEkVF.png

Source Link

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events.

Scope characteristics

  1. Scopes provide APIs ($watch) to[enter image description here][1] observe model mutations.
  2. Scopes provide APIs ($apply) to propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event handlers).
  3. Scopes provide context against which expressions are evaluated.

For example {{username}} expression is meaningless, unless it is evaluated against a specific scope which defines the username property.Scope is the glue between application controller and the view.

https://i.sstatic.net/eEkVF.png

default

AltStyle によって変換されたページ (->オリジナル) /