Default
The Feature Toggle component will add its children to the dom if the specified feature toggle (code table 589) is enabled in configuration. If the feature toggle code table is not loaded (which is the case when running in this example), then the child components will not render. Use this snippet as an example on how to implement in a module even though the children do not render here.
Content when feature is enabled
Content when feature is disabled
- HTML
<div ng-controller="headerExampleController"> <inv-feature-toggle feature="apps"> <div>Content when feature is enabled</div> </inv-feature-toggle> <inv-feature-toggle feature="apps" when-disabled="true"> <div>Content when feature is disabled</div> </inv-feature-toggle> </div>