Relative Content

Tag Archive for htmlangularparametersrouter

A variable I’m pulling out of the query params does not reflect in the html

constructor(private router: Router , private ref: ChangeDetectorRef ) { this.router.events.pipe( filter((event) => event instanceof NavigationEnd), map(() => this.rootRoute(this.route)) ).subscribe((route: ActivatedRoute) => { let tempusSuccessResponse = this.route.snapshot.queryParamMap.get(‘TRANSUCCESS’); let val = tempusSuccessResponse ? tempusSuccessResponse.toUpperCase() === ‘TRUE’ : false this.creditCardSubmitSuccess = val; if (val) { let tempusTokenResponse = this.route.snapshot.queryParamMap.get(‘REPTOKEN’); let val1 = tempusTokenResponse ? tempusTokenResponse : ”; this.creditCardToken […]