handleSelectionChange()

in toolings/tfjs-debugger/src/app/components/input_selector/input_selector.component.ts [107:119]


  handleSelectionChange(event: MatSelectChange) {
    const inputTypeId = event.value as InputTypeId;

    // TODO: add other logic as needed to handle selection change (e.g. show
    // certain UI elements when an item is selected).

    // Update url with selected input type id.
    this.urlService.updateUrlParameters({
      [appendConfigIndexToKey(
          UrlParamKey.SELECTED_INPUT_TYPE_ID, this.configIndex)]:
          `${inputTypeId}`
    });
  }