1 min readMar 10, 2018
Good post Austin. Another option can be use NGX-Feature-Toggle, which already has this logic wrapped in a component and it's already tested. So you can just add it in your project and use it in your application easily.
https://willmendesneto.github.io/ngx-feature-toggle/
I actually gave a talk at NG-Japan 2017 about it, with some best practice for shared components as well.