Is it possible to test content containing an ng-if by updating a property on the controller's variable in the console?
<div class="manager-only" ng-if="teamSchedule.userObject.isManager">
<a href="#add-game">
<input class="btn btn-success" type="button" value="Add New Game" />
</a>
</div>
The userObject has a boolean isManager property which is initially set to false on page load. I am attempting to update this property in the console to test the behavior of ng-if.
I discovered that adding
window.teamSchedule = teamSchedule;
to the controller allows me to reference its variables in the console and change them, but the ng-if does not respond to the changes.
I also tried changing the ng-if to an ng-show without success. Is there a way to make this work, or is it not feasible?
Thank you!