Hi Nimesh,

Technically the ```var name = 'value'``` is faster. 
However, the performance of both is extremely high. I recall a benchmark of 
a few years back
and it was something like 200.000 lookups for a var took 5Ms, and 200.000 
lookups for
a 3 level deep object took 6Ms

Bottom line, no real difference. Use whatever you feel comfortable with. 
The difference won't show up in any performance tests.
(well unless you are querying your variable millions of times, but then you 
got bigger problems!)

Regards
Sander 


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to