Problem

Pass async data (like observable) as an input of a function.

Workaround

<input #id [value]='(data$ | async) | json' type="hidden" />

<ion-button click="doSomething(id.value)"> </ion-button>