I have an object stored in the root scope and I want to display some values in form inputs.
I attempted the following:
<input type="number" ng-model="$root.order.id" class="form-control" id="orderNumber" />
However, this does not seem to be working.
How should I pass the value into the ng-model?
Any help would be greatly appreciated.