ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > Education
Reload this Page ElaKiri Programmer's Club
Reply
 
Thread Tools
(#3161)
Old
හෙනයා's Avatar
හෙනයා හෙනයා is offline
Senior Member
හෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of lightහෙනයා is a glorious beacon of light
 
Posts: 4,487
Join Date: May 2014
Location: Kottawa
05-03-2018, 08:21 AM

Quote:
Originally Posted by TNHM View Post
Ela. Machan

මචන් එතැනදී 1 වෙනි පාර subscribe උනාම එන්නේ මේ වගේ result එකක්..



මේ object එකේ primitive fields (id, name, age...) වගේ එව්වා කොහොමත් ගන්න පුළුවන්.. හැබැයි related objects ගන්න තමයි link array එකේ තියෙන href එකේ තියෙන url එක subscribe කරන්නේ..

උබ කියපු 1 වෙනි method එකට අනුව කලොත් නම් මෙහෙම අවස්ථාවකදී ඒ callback එක කලින් call වෙනවා..

PHP Code:
getStudent(studentID Stringcallback) {
   
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)); 
දෙවෙනි ක්‍රමේ ගැන ගැන නම් දන්නේ නෑ බන්..

මට මේකට විසදුමක් අහු උනා.. බුකියේ group එකකින් ඇහුවම කිව්වා forkJoin() use කරන්න කියල... මේ විදිහට...



හැබැයි මේකේ තියෙන අවුල මොකක්හරි Observable එකක් null උනොත් මුළු forkJoin එකම වැඩ කරන්නේ නෑ..
Reply With Quote
(#3162)
Old
visalbro's Avatar
visalbro visalbro is online now
Senior Member
visalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura about
 
Posts: 589
Join Date: Jun 2017
Location: panadura
05-11-2018, 06:33 PM

Programmer kenek wenna beginner kenekta freecodecamp site eka hodayida?
Reply With Quote
(#3163)
Old
visalbro's Avatar
visalbro visalbro is online now
Senior Member
visalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura about
 
Posts: 589
Join Date: Jun 2017
Location: panadura
05-11-2018, 07:30 PM

Bump
Reply With Quote
(#3164)
Old
wolvoring wolvoring is offline
Senior Member
wolvoring will become famous soon enoughwolvoring will become famous soon enough
 
Posts: 207
Join Date: Apr 2017
Location: 127.0.0.1
Send a message via AIM to wolvoring
05-11-2018, 07:32 PM

Php python ..
Reply With Quote
(#3165)
Old
Sry.com's Avatar
Sry.com Sry.com is offline
Senior Member
Sry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of lightSry.com is a glorious beacon of light
 
Posts: 1,925
Join Date: Sep 2014
Location: localhost
Send a message via ICQ to Sry.com Send a message via AIM to Sry.com Send a message via Yahoo to Sry.com Send a message via Skype™ to Sry.com
05-11-2018, 07:45 PM

Sbscribd
Reply With Quote
(#3166)
Old
visalbro's Avatar
visalbro visalbro is online now
Senior Member
visalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura aboutvisalbro has a spectacular aura about
 
Posts: 589
Join Date: Jun 2017
Location: panadura
05-11-2018, 08:09 PM

Quote:
Originally Posted by wolvoring View Post
Php python ..
https://www.google.lk/url?sa=t&sourc...h9NHmRpWZrEZt-


Meka poddak balala kiyanna
Reply With Quote
Reply

Bookmarks

Tags
ඉලංගයා ආවෝ, 111, 123, 22222, after_math, anime is here, [email protected] was here!, dennada php, elakiri, elakiri programmer's club, elakiri programmers, elakiri programming, elakiri real brains here, ijts kukulo nedda ?, mama java, mihicherub here, mr.horus, mr.thor 1, mr.thor 2, programmers, programming waddoo, sri lankan programmers, tag reserved, whatever :cool: i'm in, wilsan mama

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.03775 seconds with 11 queries