pBouillon / ngx-flagr

🚩 Effortless feature flag management in Angular
https://pbouillon.github.io/ngx-flagr/
MIT License
9 stars 2 forks source link

Incorrect examples for the `featureFlagElse` usage #8

Closed pBouillon closed 1 year ago

pBouillon commented 1 year ago

Issue Summary

The example showcasing the usage of the featureFlagElse is incorrectly showing its usage.

Category

- [ ] Bug report
- [ ] Regression
- [ ] Feature suggestion
- [x] Documentation issue
- [ ] Other

Expected Behavior

The feature flag can use an else keyword to indicate which TemplateRef:

<div *featureFlag="'my-feature'; else disabledContent">
  This content will only be rendered if the 'my-feature' feature flag is enabled.
</div>

<ng-template #disabledContent>
  This content will be rendered when the 'my-feature' feature flag is disabled.
</ng-template>

Actual Behavior

The example is shown without the ;else disabledContent part both in the Readme and in the FeatureFlagDirective documentation

Steps to Reproduce

N/A

Environment

Additional Information

N/A