Questions tagged as 'angularjs'

1
answer

FOR in localstorage does not work

Good night guys, The status of my LOCALSTORAGE looks like this: WhenItrytodothis:for(varpostin$window.localStorage){console.log(post);varvalue=JSON.parse($window.localStorage[post]);alert(value);response.push(value)}Ittakesupthelengthattr...
asked by 26.09.2018 / 03:10
2
answers

Larger number of occurrences of an element in an array of objects - JavaScript

Hello, I have an array of news (objects) lista: Array<Noticia> = []; From this array I need to find out the author who most published the news. One news item has: ID | Title | Tags Author | Content . My initial idea was:...
asked by 17.09.2018 / 18:20
1
answer

Pick button id click on Angular

I have several buttons with the same function and I try to get the last id clicked, but always only a single id comes. HTML: <div class="container"> <div class="row"> <div class="col-sm"> <button type="button" c...
asked by 27.12.2018 / 17:00
3
answers

How to tell if Modal is scrolling active?

I have a modal that does scrolling when the contents of the window is larger on the screen ..., I would like to put a different class when the modal scrolling was active, in the example below it changes the class even without scrolling: My m...
asked by 10.08.2018 / 17:08
1
answer

Change color of the clicked element (AngularJS)

I need to change the color of only the element that was clicked, in case I change the background color of the DIV, I have an ng-repeat, but when I click on the div, all others have the background changed. <div class="cartoes" ng-class="{'act...
asked by 11.07.2018 / 14:18
2
answers

How do you pass two parameters in the Ng-click Angular JS?

<button class="btn btn-conf-t btn-deletar" ng-click="deleteCategory(cat.id)"><i class="fa fa-trash"></i></button> Here I just pass one parameter, is it possible to pass ng-click="deleteCategory(cat.id, cat.nome)"...
asked by 07.05.2018 / 14:19
1
answer

Undefined when passing parameter to a JS and Angular function

I have a function that takes as a parameter a value from HTML, however, it is coming undefined . I'm using JS and Angular. My HTML <div class="input-group col-lg-3 col-md-3 col-sm-3 col-xs-12 pull-left"> <select...
asked by 06.12.2017 / 00:12
1
answer

Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

Using angular, I am not able to insert an array of genres into the Gender property that is in the Manga object. Using postman to insert the Generos array into the API / manga would look like this. { "nome": "BORUTO", "status": "...
asked by 20.11.2017 / 16:31
1
answer

Form with Date and Time - AngularJS

I have a form with the option to choose Date and Time. I am using the Datepicker and Timepicker components. <!-- Date --> <div class="col-xs-12 col-md-3 col-lg-3"> <div class="form-group"> <label>Data</label>...
asked by 17.11.2017 / 19:26
1
answer

Is it possible to create a hybrid application with AngularJS as the front, and java as a backend?

I'm new to front-line programming, especially at AngularJS. So I'm asking you if it's possible to create an app, either with ionic or phonegap, with the angular being front-end and the back-end java without any incompatibility or anything like t...
asked by 13.01.2018 / 23:29