Questions tagged as 'angularjs'

2
answers

How to return the specific element when using multiple custom share buttons on the same page, using querySelectorAll?

This custom Facebook share button works great when you place just one button on each page. (This is an excellent way to make projects made in Ajax and JavaScript traceable to search engines and social networks.) When I put multiple buttons on...
asked by 16.02.2015 / 12:54
1
answer

Get date formatted in HTML5

I have the following scenario. A form with two date fields AndwhenIclickSearch,thedataisinthisformat HowcanIgetthedateintheformat"yyyy-mm-dd" or "dd-mm-yyyy"? Without this additional data (Thu Oct, 00:00:00 GMT-0300), does anyone know? Follo...
asked by 16.01.2018 / 20:10
1
answer

Policy to restrict typing with regular expression in AngularJS

I wrote a directive to inhibit typing from specifying a regex. However there are two bugs in this solution: In the first example input should allow only numbers or numbers followed by periods [.] , or followed by periods followed by nu...
asked by 15.01.2018 / 15:18
1
answer

Angular ng-pattern - 1 or 2 numbers

In the code below, I need to get the ng-pattern to receive 1 or 2 numbers, the format being in minutes, that is, minimum 0 or 00 and maximum 59. <input type="text" step="any" value="" ng-model="job.ValorIntervalo" min="0" max="60" ng-pa...
asked by 03.04.2018 / 14:54
1
answer

Change css class of an item already rendered by ng-repeat

I need a help with AngularJs (1.6), I need to change the css class of just one or more items already rendered by ng-repeat . I have seen in some places that clicking the item you can send your $ index and thus change the class only of...
asked by 21.03.2018 / 04:20
3
answers

Querying a JSON via a POST on ANGULAR

I have an app in IONIC which should consume a JSON via POST, so I passed through POSTMAN I have a URL, the version and a token defined as I do to pass this via Angular, and return my JSON . So there's my data I have in POSTMAN Key Value Des...
asked by 12.11.2017 / 19:19
1
answer

Prevent typing input letters with angular [duplicate]

How to prevent typed letters in a input where only angled numbers should be typed? Only with policies is it possible?     
asked by 02.08.2017 / 16:27
2
answers

Date mask with time

How do I make a Mask for an input text with the format xx / xx / xxxx xx: xx: xx using angular? It would be the day, month, year, hour, minute and seconds. <div class="form-group filtro"> <label class="" for="endDate">Data de...
asked by 18.07.2017 / 15:29
1
answer

How to link the Id's of two API's with ANGULAR? [closed]

I have two functions that query two methods of a Angular .. I need to compare the API of the results and only show that the id is equal , Thanks in advance! I have the following code: function SearchDespesa(response){ $this.Desp...
asked by 24.08.2017 / 01:59
2
answers

Make calculations between Inputs

I'm using a plugin that when you click the + button it multiplies the value. It works perfectly but the calculation is only done within <span id="price" class="amount"></span> and brings Total within <span id="total...
asked by 17.01.2017 / 13:10