This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const newFeature = await this.featureFlags.newFeature(); // retrieve value of Feature Flag | |
if (newFeature) { | |
await this.newFeatureLogic(data); // execute logic for new feature | |
} else { | |
await this.statusQuoLogic(data); // execute logic that is the status quo | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createWithNewProductUI = await this.featureFlags.newProductUI({ key: brandId }); | |
if (createWithNewProductUI) { | |
await this.createProduct(product); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |