Hi BRK, 

{ value: abcValue} is a javascript object literal

This is a good place to start:

   - http://www.dyn-web.com/tutorials/object-literal/
   - 
   
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Object_literals
   
Warning: Do not confuse this with JSON.  They are similar, but not the same.
http://stackoverflow.com/questions/2904131/what-is-the-difference-between-json-and-object-literal-notation

Justin

On Tuesday, 31 March 2015 11:17:17 UTC+2, BRK wrote:
>
> Hi I am new to Angular JS.
>
> I need to some help on understanding this code please help me in this:
>
> *var abc = { value: abcValue };*
>>
>>
>>> *$http.get(url, { params: abc })*
>>
>> *                .then(function (result) {*
>>
>>                     
>>
>> *                    return result.data;*
>>
>> *                });*
>>
>>
> 1) Here what is assigned to variable abc ?
> 2)What is that format *{ value: abcValue };*
> *3)If get accepts only one argument what is the **params: *represent 
> which is inside get function.
>
> Please enlighten.. 
> Thanks
>

-- 
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