Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getFeatures method to ConfigStateService to get features as object #8211

Closed
mehmet-erim opened this issue Mar 25, 2021 · 0 comments · Fixed by #8212
Closed

Add getFeatures method to ConfigStateService to get features as object #8211

mehmet-erim opened this issue Mar 25, 2021 · 0 comments · Fixed by #8212

Comments

@mehmet-erim
Copy link
Contributor

getFeatures and getFeatures$ methods will be added to the ConfigState. The new methods can be used as shown below:

const features = this.configState.getFeatures([featureKey1, featureKey2]);
console.log(features) // { featureKey1: featureValue1, featureKey2: featureValue2 }
this.configState.getFeatures$([featureKey1, featureKey2]).subscribe(features => {
console.log(features) // { featureKey1: featureValue1, featureKey2: featureValue2 }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant