Today, I have seen a bug in angularjs:
When you try to set a scope value directly in a ng-click, it doesn\'t work when your ng-click is in a ng-if which test the same sc
I don't think this is a bug. You are just auto-creating properties and confusing scopes in the view.
Updated Fiddler.
This does work:
with ngif block
This is happening because self inside of the ng-if is creating a new scope.
self
ng-if