ministryofjustice / cla_frontend

CLA Front End
http://ministryofjustice.github.io/cla_docs/
MIT License
3 stars 4 forks source link

LGA-1964 - Add angular service to detect enabled feature flags #778

Closed said-moj closed 2 years ago

said-moj commented 2 years ago

What does this pull request do?

Add angular service to detect enabled feature flags

Any other changes that would benefit highlighting?

Also switched from using an inline script with global variables to using html attribute for enabled feature names The issue with using the inline script was that the hash had to be regenerated whenever there was a change to the feature flag state and would have resulted to having hashes of multiple feature flag states

Checklist