Hi Ahmed,

Well this is not Angular specific. 
As you can see auth is an array ([...]) which contains an associative array 
({...}).
So I would say you can access to the userPass field with auth[0].userPass.

For typescript you can refer to this doc 
<https://www.typescriptlang.org/docs/home.html>.
For Angular the Tour of Hero <https://angular.io/tutorial> tutorial is a 
good starting point and then the doc on angular.io is really good.

If you don't make this effort you will waste your time and it will be 
really frustrating.
Another side effect is that people here will stop help you as they really 
can't learn Angular for you.

This is just an advice don't take it bad.
Regards,
Arnaud.



On Sunday, 12 January 2020 02:28:21 UTC+1, ahmed elbarbary wrote:
>
> How to access value of userPass from array of object using angular 7?
> I need to access Property userPass from array of object 
> I have variable from type any his name auth 
> auth have array of object
> I need to access property value from userpass
> auth is  
>   
> [{"userLoginID":0,"userName":"test","userMail":"[email protected]",
> "userPass":"12345678","fkTeamID":0  
>   
> ,"isAdmin":false,"createdBy":0,"createdDate":"0001-01-01T00:00:00",
> "isHidden":false}]  
>
> I need to access userPass value meaning i need to access 12345678
> so what i do to make that please using angular 7
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/dbc8afda-61f5-4c4a-b44c-3a34ce768c5c%40googlegroups.com.

Reply via email to