D
D
driver4582016-09-14 23:26:58
JavaScript
driver458, 2016-09-14 23:26:58

How to fill fields using script?

Fields of this type:

<div class="form-group">
  <input type="text" class="form-control" ng-model="declaration.shippingGoalCode">
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-09-15
@driver458

Well, in the controller and write

$scope.declaration = {
  shippingGoalCode: 'value'
}

or
depending on whether you have controllerAs syntax or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question