Questions tagged [lexical-scope]

Lexical scoping (sometimes known as static scoping ) is a convention used with many programming languages that sets the scope (range of functionality) of a variable so that it may only be called (referenced) from within the block of code in which it is defined. The scope is determined when the code is compiled. A variable declared in this fashion is sometimes called a private variable.

271 questions
-3
votes
1 answer

What is the lexical scope of the success callback of the 'then' function of an angular promise?

I'm trying to understand why some of the dependecies injected (or other variables declared) in my controller are not available inside the success/error callback of the 'then' function of a deferred promise. I've searched in angular $q's…
DiegoA29
  • 1
  • 2
1 2 3
18
19