+ 2

nested objects

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

2nd Jun 2020, 3:07 PM
vardhan js
vardhan js - avatar
13 Respostas
+ 15
Use {{ vardhan.job.company }} inside your html template.
2nd Jun 2020, 7:37 PM
Igor Makarsky
Igor Makarsky - avatar
+ 14
I know something about it. By the way, there is an Angular course available in this app.
2nd Jun 2020, 7:33 PM
Igor Makarsky
Igor Makarsky - avatar
+ 14
What do you want to know?
2nd Jun 2020, 7:35 PM
Igor Makarsky
Igor Makarsky - avatar
+ 13
Your object has wrong syntax. You can't use semicolons inside array and object.
2nd Jun 2020, 7:19 PM
Igor Makarsky
Igor Makarsky - avatar
+ 3
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.
2nd Jun 2020, 10:27 PM
Ryan Els
Ryan Els - avatar
+ 3
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.
2nd Jun 2020, 10:39 PM
Ryan Els
Ryan Els - avatar
+ 1
OK thanks.
2nd Jun 2020, 7:40 PM
vardhan js
vardhan js - avatar
0
Sorry mistake.
2nd Jun 2020, 7:20 PM
vardhan js
vardhan js - avatar
0
Do you know angular
2nd Jun 2020, 7:21 PM
vardhan js
vardhan js - avatar
0
Tell me..
2nd Jun 2020, 7:35 PM
vardhan js
vardhan js - avatar
0
Nested object OK. How to print nested object.
2nd Jun 2020, 7:36 PM
vardhan js
vardhan js - avatar
0
I know print single object.
2nd Jun 2020, 7:37 PM
vardhan js
vardhan js - avatar
0
Do you open api.
2nd Jun 2020, 7:37 PM
vardhan js
vardhan js - avatar