Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

188
Vistas
angular js, add data with model and return on view

I have a problem: i have list of tags, and i can add tags. for add tags a use modal

and i ng repeat my list of tag. but when i add a tags, i see it on my console.log, but he dont be print on my ng repeat :

my code :

    $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");
            });
};

and my view

                    <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 for your help

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda