Skip to content

Instantly share code, notes, and snippets.

@ak274
Last active June 19, 2020 14:18
Show Gist options
  • Save ak274/7ef54fbcb22bd461eff5814183637eed to your computer and use it in GitHub Desktop.
Save ak274/7ef54fbcb22bd461eff5814183637eed to your computer and use it in GitHub Desktop.
go-to-overview

// move getlisting() method in to getetplistings() in keyfund-info.component.ts

this.getListing(this.currentRICDetails.securityId, this.currentRICDetails.ric, this.currentRICDetails.asAtDate);

goToETPKeyFundInfoPage() { let asAtDate: string = ''; const dt = Moment(this.dt).format('YYYY-MM-DD'); const today = Moment().format('YYYY-MM-DD'); if (Moment(dt).isBefore(today)) { asAtDate = dt } // this.currentRIC will be used for current RIC this.route.navigate(['/eclipse/etp/keyfund-info'], { queryParams: { ric: this.currentRIC ? this.currentRIC : '', isin: this.primaryListing.isin ? this.primaryListing.isin : '', sedol: this.primaryListing.sedol ? this.primaryListing.sedol : '', cusip: this.primaryListing.cusip ? this.primaryListing.cusip : '', asAtDate: encodeURIComponent(asAtDate) } }); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment