Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Why ng-if doesn't work for me in this example but ng-show does JSFiddle:
<div ng-if="false">text</div> <div ng-show="false">text2</div>
and how to fix that?
ngIf is a new directive added in v1.1.5. JSFiddle has you on 1.1.1.
ngIf
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.