Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Thursday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="හෙනයා" data-source="post: 23164185" data-attributes="member: 510186"><p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>මචන් එතැනදී 1 වෙනි පාර subscribe උනාම එන්නේ මේ වගේ result එකක්..</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong><a href="https://imgbb.com/" target="_blank"><img src="https://image.ibb.co/b6GStn/Capture.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>මේ object එකේ primitive fields (id, name, age...) වගේ එව්වා කොහොමත් ගන්න පුළුවන්.. හැබැයි related objects ගන්න තමයි link array එකේ තියෙන href එකේ තියෙන url එක subscribe කරන්නේ..</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>උබ කියපු 1 වෙනි method එකට අනුව කලොත් නම් මෙහෙම අවස්ථාවකදී ඒ callback එක කලින් call වෙනවා..</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>[PHP]</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>getStudent(studentID : String, callback) {</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> let newStudent = new Student();</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> this.studentService.findOneById(studentID).subscribe(student => {</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> newStudent = student;</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> student.links.forEach(link =>{</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> laptopService.findOneById(link.href).subscribe(laptop => {</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> newStudent.laptop = laptop;</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> });</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> });</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong> callback(student);</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>});</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>}</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>getStudent("1", (student)=> log(student));</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>[/PHP]</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>දෙවෙනි ක්රමේ ගැන ගැන නම් දන්නේ නෑ බන්.. <img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /><img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>මට මේකට විසදුමක් අහු උනා.. බුකියේ group එකකින් ඇහුවම කිව්වා forkJoin() use කරන්න කියල... මේ විදිහට...</strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong><a href="https://ibb.co/ibCLeS" target="_blank"><img src="https://preview.ibb.co/naPBm7/Capture.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong>හැබැයි මේකේ තියෙන අවුල මොකක්හරි Observable එකක් null උනොත් මුළු forkJoin එකම වැඩ කරන්නේ නෑ.. <img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /><img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /><img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /></strong></span></span></p> <p style="text-align: center"><span style="font-size: 12px"><span style="color: #d25903"><strong></strong></span></span></p></blockquote><p></p>
[QUOTE="හෙනයා, post: 23164185, member: 510186"] [CENTER][SIZE="3"][COLOR="#d25903"][B] මචන් එතැනදී 1 වෙනි පාර subscribe උනාම එන්නේ මේ වගේ result එකක්.. [url=https://imgbb.com/][img]https://image.ibb.co/b6GStn/Capture.png[/img][/url] මේ object එකේ primitive fields (id, name, age...) වගේ එව්වා කොහොමත් ගන්න පුළුවන්.. හැබැයි related objects ගන්න තමයි link array එකේ තියෙන href එකේ තියෙන url එක subscribe කරන්නේ.. උබ කියපු 1 වෙනි method එකට අනුව කලොත් නම් මෙහෙම අවස්ථාවකදී ඒ callback එක කලින් call වෙනවා.. [PHP] getStudent(studentID : String, callback) { let newStudent = new Student(); this.studentService.findOneById(studentID).subscribe(student => { newStudent = student; student.links.forEach(link =>{ laptopService.findOneById(link.href).subscribe(laptop => { newStudent.laptop = laptop; }); }); callback(student); }); } getStudent("1", (student)=> log(student)); [/PHP] දෙවෙනි ක්රමේ ගැන ගැන නම් දන්නේ නෑ බන්.. :(:( මට මේකට විසදුමක් අහු උනා.. බුකියේ group එකකින් ඇහුවම කිව්වා forkJoin() use කරන්න කියල... මේ විදිහට... [url=https://ibb.co/ibCLeS][img]https://preview.ibb.co/naPBm7/Capture.png[/img][/url] හැබැයි මේකේ තියෙන අවුල මොකක්හරි Observable එකක් null උනොත් මුළු forkJoin එකම වැඩ කරන්නේ නෑ.. :sorry::sorry::sorry: [/B][/COLOR][/SIZE][/CENTER] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom