Why does the second button not work, when ng-if is used? I want to realize a button that is present only when the model value is set / not “”/ not null. Template: Controller: To play around: JSFiddle Answer Use ng-show Instead of ng-if. That should work. Fiddle