Is there a way to set the value of a textbox hidden by ng-if?
I have a textarea that I would like to prepopulate as the page is loading:
<textarea id="envConfigJson" rows="5" class="form-control"
placeholder="Configuration json" ng-keyup="editConfigEnv()"
ng-disabled='!selectedConfigurationEnv'></textarea>
At the time of the pre-population the textarea's parent is hidden through an ng-if. Is there a way to set the value of this textarea even though it is hidden from the page? I am able to confirm that the correct value is being assigned to the val property via jquery:
$('#envConfigJson').val("correct value here");
If this is not possible, I will gladly rethink my population logic.