Correct scope resolution for ng-init code