Comments (3)
Hello @humbertosales . Thanks for open this issue.
Looks like, based on your example, the issue is related to your component structure.
If you look at the examples on README.md and on feature-toggle-provider.component.spec.ts
tests feature-toggle-provider
should wrap feature-toggle
component.
<feature-toggle-provider [featureToggleService]="featureService.getAllFeatures()">
<feature-toggle [featureName]="'categoria'">
<button type="button" class="btn btn-danger btn-sm" (click)="excluirCategoria(categoria)">
<i class="fa fa-remove"></i>
</button>
</feature-toggle>
</feature-toggle-provider>
Can you check if this behavior still persists using the latest version of ngx-feature-toggle
and try to simulate this issue, please? In case of it's still an issue, can you share a link with an example using the stackblitz demo?
from ngx-feature-toggle.
Closing this issue by lack of reply
from ngx-feature-toggle.
i think he's trying to say that the feature flags aren't reactive variables, i.e. you can't update the flags during runtime using http requests because feature-toggle-provider [featureToggleService] does not accept an observable or promise. One option is to use a resolver on any component that needs flags, another option is to provide default flags while loading the flags, neither option is great IMO.
from ngx-feature-toggle.
Related Issues (17)
- Migrating from Travis-CI to Circle-CI HOT 1
- Request FeatureToogleProvider configurable onLoad module HOT 2
- Version 10 of node.js has been released
- NgOnInit called with disabled feature HOT 11
- Feature request: Prevent routing to component HOT 5
- Enable All / Disable All Option HOT 2
- No error or log when Feature Toggle Provider data is not having featuretoggle name which is using in sub components HOT 2
- Enable "feature toggle in array" in Template (like in Route Guards) HOT 4
- Use a "redirectTo" property in route.data to let guard where redirect when the rule is not matched HOT 2
- Upgrade to Angular 13 HOT 5
- Upgrade to Angular 14 HOT 1
- Redirect Doesn't Work When Path is Empty HOT 2
- NgxFeatureToggleRouteGuard with OR behavior
- An in-range update of @angular/material is breaking the build 🚨 HOT 2
- Implement ability to monitor the value of feature x to show / hide dynamically HOT 3
- Uncaught Error: Template parse errors: Can't bind to 'featureToggleService' since it isn't a known property of 'feature-toggle-provider' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-feature-toggle.