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 nul
It doesn't work because ng-if is creating a new scope and interpreting your blub = 'yyyy' as defining a new local variable in the new scope. You can test this by putting the second button to:
Y
However $parent is an ugly feature.