in toolings/tfjs-debugger/src/app/components/backend_selector/backend_selector.component.ts [70:87]
ngOnInit() {
// Update currently selected backend from URL.
this.store
.select(selectConfigValueFromUrl(
this.configIndex, UrlParamKey.SELECTED_BACKEND_ID))
.pipe(takeWhile(() => this.active))
.subscribe((strId) => {
// The first one is the default.
let backendId = this.backends[0].id;
if (strId != null) {
backendId = strId;
}
this.selectedBackendId = backendId;
this.changeDetectorRef.markForCheck();
// TODO: update configs in store.
});
}