Answer the question
In order to leave comments, you need to log in
How to make block repeat after button click in Angular?
I have a certain data block in the form that should be repeated after clicking on the button
One more blockWhat is the best way to do this (the problem is that the values of Angular expressions are NOT written using jqery), and I feel that this can be done gracefully using Angular
<div class="panel panel-default" >
<div class="panel-heading"><b> Пример : {{applianceName }}</b></div>
<div class="panel-body">
<div class="form-group">
<label> Пример:</label>
<select class="form-control" required ng-model="applianceName" >
<option ng-repeat="applic in appliance" required>{{ applic.name }}</option>
</select>
</div>
<div class="form-group">
<label> Пример:</label>
<select class="form-control" required>
<option ng-repeat="behavior in behavior" required>{{behavior.name}}</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<button type="button"
class="btn btn-primary btn-lg btn-block"">
<span class="glyphicon glyphicon-plus"></span>
Еще один блок
</button>
Answer the question
In order to leave comments, you need to log in
Yes, and I feel that this can be done gracefully using Angular
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question