nested objects | SoloLearn: Learn to code for FREE!

+2

nested objects

vardhan={study:[ name:"satya"; age:"28"; ]; job:[ company:"xyz"; exp:"5"; ]; } i want print company in angular pogram??

6/2/2020 3:07:06 PM

vardhan js

13 Answers

New Answer

+13

Use {{ vardhan.job.company }} inside your html template.

+12

I know something about it. By the way, there is an Angular course available in this app.

+12

What do you want to know?

+11

Your object has wrong syntax. You can't use semicolons inside array and object.

+2

vardhan js You doing ok. But look at the code you shared. That is not a nested object. That is an object with a property with an array value. Followed by another property with an array value? Coding is fun but it is also a very technical scientific business. It is very (I repeat) very important to learn to crawl in this business before you try to run. Start with the basics. Angular is not basics. Angular is a JavaScript framework for coders that know JavaScript, HTML, and CSS. I am not trying to discourage you. A passion and self belief in this career is a must. But you must also be realistic. You not ready for Angular yet. Learn JavaScript first: especially classes and ES6 modules if you want to use Angular.

+2

And like Igor Makarsky pointed out the 'object' is not even an object. The syntax is completely wrong. Be humble, ambitious, daring, creative and patience. Learn the basics first.

+1

OK thanks.

0

Sorry mistake.

0

Do you know angular

0

Tell me..

0

Nested object OK. How to print nested object.

0

I know print single object.

0

Do you open api.