I want to create a function that return an object from service that uses external API. I am not able to make it work.
GetMatchinfo (matchid : number  ) : Match {
    let aq :Match;
    this.matchService.GetMatch(matchid).subscribe(
        (Matchinfodata: Match)=>{     
            aq=Matchinfodata;
         }
    ); 
    return aq;
}