Can Togglz be used for toggling features in JavaScripts, Node.js

469 views
Skip to first unread message

Richa Maheshwari

unread,
Jan 16, 2018, 6:41:57 PM1/16/18
to togglz-users
Hi All,

We have a project having code in Java at the back end and Javascript, React, backbone, JSP.


We want to use Togglz to control the display of features on the front end depending on the Feature state.


So in the from end code as well, we would be writing some logic like this

if (MyFeatures.HOT_NEW_FEATURE.isActive()) {
  // do cool new stuff here
}

But then what should be the best approach to get this working on the front-end.


Please help


Thanks,
Richa

Christian Kaltepoth

unread,
Jan 17, 2018, 1:01:58 AM1/17/18
to togglz...@googlegroups.com
You could simply provide some API endpoint for that. Basically some JSON response which contains a boolean for each feature.

Christian
Reply all
Reply to author
Forward
0 new messages