I am trying to identify if the link in [href] starts with https:// if not, it should add it to the link that is coming from [href]="webData?.contact?.homepage" I thought about something like this but im not exactly sure how to do it.
public webSite: string;
if (this.webData.contact.homepage !== 'https') {
this.webSite === 'https://' + this.webData?.contact?.homepage;
} else {
this.clubSide + 'https://';
}
[href]="webData?.contact?.homepage"