I have below Observable
config$: Observable<QueryBuilderConfig>;
this.config$.pipe(map(item => {
return {
fieldGroups: [
{ id: CustomAttributeEntityType.Risk, label: this.l('Risk') },
{ id: CustomAttributeEntityType.RiskAssessment, label: this.l('Risk Assessment') }
],
fields: this.metricCreateConfigureStore.queryBuilderFields$, // Get the value from obserable
allowEmptyRules: true,
allowEmptyRulesets: false
}
}));
In the field
attribute, I want to get the value from another observable, something like below
fields: this.metricCreateConfigureStore.queryBuilderFields$
queryBuilderFields$
return Observable
as below
readonly queryBuilderFields$: Observable<{ [key: string]: QueryBuilderFieldsDto }> = this.select(state => state.queryBuilderFields);
How can I get the value, without subscribe over there??