Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
js angular, agregue datos con el modelo y vuelva a la vista

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!