Challenge Lab #1 (Assignment #18) Adding a Random Numbered Humor button 1) I added this method to the humorHttp Interface: getRandomNumberedHumor(type: string) : Observable; 2) I added this implementation of the new method to the humor.service.ts file: private randomNumberedHumorURL = "/numbered/random/"; getRandomNumberedHumor(type: string) : Observable { return this.http.get(this.humorRestURL + this.randomNumberedHumorURL + "/" + type); }; 3) I changed: numbered.component.html from:
to:
  
4) I add the new method used in the HTML to the numbered.component.ts file findRandomNumbered(): boolean { this.humorService.getRandomNumberedHumor(this.category.id).subscribe(results => { this.numberedHumor = results; }); return false; }