1
Hello, I am beginner with Angularjs.
To insert and delete new fields this is all ok, see fiddle: http://jsfiddle.net/zbdvke2w/4/
It happens that I need that when loading the page there is not all the content that has inside the div Jumbotron in the DOM
<div class="jumbotron">
<button style="float:right " type="button" class="btn btn-danger" ng-click="removerIcms(icms)">x</button>
<label for="ex2">Regime</label>
<select class="form-control" ng-model="icms.regime" ng-options="r.regime for r in data">
<option value="">Selecione o Regime</option>
</select>
<label for="ex2" ng-show="icms.regime">Situação Tributária
<select class="form-control" ng-show="icms.regime" ng-model="icms.situacao" ng-options="s.situacao for s in icms.regime.SituacaoTributaria">
<option value="">Selecione a Situação Tributária</option>
</select>
</label>
<label for="ex2" ng-show="icms.regime">Origem
<select class="form-control" ng-model="icms.Origem" ng-options="o.Origem for o in icms.regime.Origens">
<option value="">Selecione a Origem do Produto</option>
</select>
</label>
</div>
How do I insert the content just after clicking? This is already working, but I need that when loading the screen have only the include button and is not ever loaded the content of the div Jumbotron.
+1 For the good answer, my answer is a more greedy alternative, kkkk.
– Ivan Ferrer
hahaha an evil that is enough for everyone. Thanks for the feedback
– Gabriel Câmara
@Gabrielcâmara, perfect, thank you very much
– Gih
Dispose! Glad you helped! D
– Gabriel Câmara