Tengo un problema: tengo una lista de etiquetas y puedo agregar etiquetas. para agregar etiquetas un uso modal
y repito mi lista de etiquetas. pero cuando agrego etiquetas, lo veo en mi console.log, pero no se imprime en mi repetición ng:
mi código :
$scope.createTag = function () { apiREST.execute('POST', "ctrl", "tag",{datas: $scope.tag}, function (error) { if(error == true){ Growl.error({title: 'ERROR', text: 'Need name value'}); }else{ Growl.success({title: "Success !", text: "Tag successfuly created !"}); } $scope.getTags(); }, ); }; $scope.getTags = function() { apiREST.execute("GET","ctrl","tag",{}, function (data) { $scope.tags = data.TAGS; console.log($scope.tags); // i see my new tag }, function () { console.log("error"); }); };y mi vista
<div class="col-md-8 text-bold"> Tags <br> <i class="text-danger"> click on tags for select </i> </div> <div class="col-md-2 text-bold"> <button class="btn btn-info" id="" ng-click="openModalTagg();"> Add Tags </button></div> </div> <br> <div class="tagCss"> <span ng-repeat="ctc in tags" > <button class="btn btn-primary tag" style="margin-top: 20px; font-size: 12px;" id='{{ctc.id_tag}}' ng-click="selectTag()" >{{ctc.name_tag}}</button> </span> </div>Ty por tu ayuda