Dynamic key syntax on angular queryParams templates

[queryParams]="{ sonItem?.is_param: sonItem?.param_value}"

the front can be dynamic
how to write the template syntax here

Feb.14,2022

es6 has the function of dynamically calculating the key value of an object, for example

[queryParams]="getQueryParams(sonItem?.is_param)"
Menu