Ej DEV
Ej DEV

Reputation: 202

What does $$value$$ means and what are the similar constants/reserved words in AngularJS?

I couldn't find anything about this on Google. Can somebody tell me what ng-model="$$value$$" means?

Upvotes: 1

Views: 114

Answers (2)

Dayan Moreno Leon
Dayan Moreno Leon

Reputation: 5435

the $$ are angulars private identifier and should not be accessed

https://docs.angularjs.org/tutorial/step_05

i can only assume $$value$$ refers to a user created variable cause i have never seen that variable in a scope definition before, the usual are

$$childHead:
$$childTail: 
$$listeners: Object
$$nextSibling: Child
$$prevSibling: 
$$watchers: Array[]

Upvotes: 1

msapkal
msapkal

Reputation: 8346

Probably I think that's interpolation, wherein you can configure the interpolation markup. Defaults to {{ and }}. However I'm surprised to see this on ng-model.

$interpolateProvider

angular.module('myApp',[]).config(function($interpolateProvider) {
  $interpolateProvider.startSymbol('//');
  $interpolateProvider.endSymbol('//');
});

Upvotes: 1

Related Questions