Questions tagged as 'angularjs'

1
answer

How to execute a callback at the end of a $ http promise, to work on success or not?

In the Angle, I am executing a call HTTP through $http.get , and when this request ends, I change the value of a variable through callback in then : $scope.carregando = true; $http.get('/users/list').then(function (response...
asked by 07.11.2017 / 19:03
1
answer

Validate input size with AngularS

I have a field in a form that I need to validate with angle. The field must be up to 11 characters long. If you have less than 5 you should get an error message requiring the user to be numbered correctly. Angle Controller angular.module(...
asked by 10.02.2017 / 19:17
2
answers

Angular filter example 1

I'm trying to apply a filter with angle 1 But I'm only able to apply for 1 field. How can I make a filter that can search for more fields? In my case it will have a filter with 5 types of fields.     
asked by 06.07.2017 / 22:13
2
answers

function Angular.js to calculate age

Good evening guys. In my bd, I store the date of birth of clients. I have a list that presents: name | cpf | age? How could I get the data stored in the bd and using Angular.js or php calculate the current age and fill in my list?...
asked by 18.05.2015 / 23:48
3
answers

How to change an item in a json

I have a JSON Array something like this: [{ id: 1, total: 50.00 }, { id: 2, total: 70.00 }] I would like to know how to add / change an item to a id only. Like it was in SQL. For example, in the case I wanted to change the...
asked by 16.02.2015 / 18:18
2
answers

How to omit a specific ng-options item?

I have this code snippet below to load a comboBox with the 'name' of all values and is working correctly. <select ng-model="information" ng-options="value.id as value.name for value in information"> </select> But I ne...
asked by 06.08.2015 / 02:29
2
answers

Create function that simulates typing

I need a function, or some plugin that simulates typing, that is to say that it has a cursor, and that it is typing and deleting words; One site I found by example was este. (The typing effect on the banner). But I could not find in...
asked by 26.12.2017 / 10:11
2
answers

AngularJS Directive - Good practice

I know that it is possible to create a directive in AngularJS in the following ways: <div angular></div> <div class="angular"></div> <angular></angular> <!-- directive: angular --> But what is the b...
asked by 29.06.2014 / 05:14
2
answers

Returning ZIP code data in form

I have the following problem: I am trying to fill in the fields public place, city and state with the informed zip. They are all input. I'm using link My project is in Django, but I think you can return the data directly on the html page (fron...
asked by 21.07.2014 / 04:41
2
answers

Format date AngularJS [duplicate]

I have a problem formatting the time that appears in View, it is coming as follows: ButIwouldlikeittoappearintheformat"hh: mm: ss". The html code is as follows: <input type="time" class="form-control" ng-disabled="!salvo" required ng-mod...
asked by 28.08.2017 / 16:27