Coder Social home page Coder Social logo

Comments (3)

willmendesneto avatar willmendesneto commented on May 30, 2024

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.

willmendesneto avatar willmendesneto commented on May 30, 2024

Closing this issue by lack of reply

from ngx-feature-toggle.

robert-king avatar robert-king commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.