Questions tagged as 'angularjs'

2
answers

Chaining of asynchronous requests

I need to do asynchronous serial data processing (sending data to a REST server), and only at the end of all requests do I need to perform another function. How can I control this flow if each request is asynchronous? What I need is someth...
asked by 03.09.2015 / 18:45
2
answers

Limiting texts by putting ellipses at the end, using angularjs

I have a text that describes a certain product, this description will serve as a preview, the ellipsis marks that the text continues, I am using angular <p ng-bind-html="service.description | limitTo:150 "></p> This s...
asked by 02.03.2016 / 19:33
2
answers

How to send form parameters instead of JSON in angular?

I'm trying to send a POST via angular, just like I did in JQuery , however, when trying to capture the data via $_POST variable, it's not bringing any value. I'm running a code similar to this in angular : $http.post('/...
asked by 06.07.2016 / 16:23
3
answers

AngularJS does not work correctly

Hello, I'm following a course of the codeschool on Angular and all the examples that I make with the angular do not work, they are very simple thing. I'm going to post the code for someone to tell me what I'm doing wrong. // app.js (fun...
asked by 19.06.2016 / 21:23
1
answer

How do I know what the first item in the ngRepeat loop is?

How do I know what the first item in a ngRepeat loop is? For example, I want to add a class to a div when it is the first of the loop. Example: <div ng-repeat="name in ['guilherme', 'wallace', 'bigown', 'rray']" ng-class="{'bol...
asked by 29.07.2016 / 16:53
3
answers

How to load a ng-controller through ajax and inject it into the DOM

I'm creating an application where I'd like to load my modules via ajax. This application uses AngularJS to handle each module and these are injected into my DOM using Jquery, as in the example below: EDIT - (as requested by @EduardoBinoto)...
asked by 24.12.2015 / 11:37
3
answers

How to use ng-repeat in a list of an object?

How do I use ng-repeat in the object's Regions attribute? Example: ng-repeat="item in objeto.RegioesFilhas Object: var objeto = { "DescricaoRegiaoVaga": "", "IdCidadeCorreios": "1", "RegioesFilhas"...
asked by 28.12.2015 / 20:00
1
answer

ng-click button inside a label

My intention is for a close button to appear within input so that by clicking on it, the search query is reassembled and returns all items again and not just those of the search in question. This button should disappear as long as the use...
asked by 07.01.2016 / 18:23
1
answer

Upload menu after login with AngularJS

In index.html I have the ng-view where the HTML content is loaded: <body> <div ng-include src="'view/sidebar.html'" class="sidebar sidebar-left" toggleable parent-active-class="sidebar-left-in" id="mainSidebar"></div>...
asked by 29.10.2014 / 18:23
1
answer

doubts with angularjs, input and onblur method ()

How do I make an input call a function? The field is a cep, I want when the user exits this field, the function is called getCep() . I know that in JavaScript has the function onblur , but with AngularJs I did not...
asked by 16.01.2016 / 23:28