Questions tagged as 'angularjs'

1
answer

Item class in list always initializes active

I used it as a reference for troubleshooting the problem: angled ng-repeat skip an item if it matches expression . Next, we know that Bootstrap has the class active to mark with a different color from the elements that are not active...
asked by 28.01.2016 / 13:06
1
answer

Graphics overlay

I have a problem when I create a chart with chart.js and then I create another chart from the menu that is on the same page. It creates the graph, but when I move the cursor over the graph it changes to the previous graph. Update After a...
asked by 20.11.2015 / 18:20
3
answers

Declaration of Controller AngularJS

Following the script below generated a doubt on which statement to use, in the AngularJS documentation I found the two forms in different examples, but I did not find an explanation of which statement is used or if there is any specific case to...
asked by 07.04.2015 / 15:53
1
answer

Insert dynamic filter into an angle expression

I'm trying to insert a dynamic filter according to a field of an object in ng-grid . I tried in various ways and I could not: $scope.gridOptions.columnDefs = [ { displayName: 'entity.tipoPessoa', field: 'tipoPessoa'}, { displayNa...
asked by 05.05.2015 / 15:53
2
answers

Is there a way to not populate HTML with policies?

Using the ng-click directive to get a click event on a link would look something like: <a ng-click="call('home')" href="#" title="ir para homepage">Home</a> But would not this be the same as using onclick="call('home...
asked by 26.11.2014 / 21:49
1
answer

Repeat element with ng-Repeat

I have a form, this one which can be inserted plus a group of "Name" and "Agency" only when clicking the button. I'm using AngularJS and ng-Repeat to repeat the fields the moment you click + . However, the list of agency names "loses" the momen...
asked by 22.07.2015 / 19:27
2
answers

URL with string parameters with angular.js

I would like to know the best way to treat url with string parameters in angular.js. When accessed: www.app.net/nomeDaPessoa/ServicoDaPessoa It would respond to a given route that is receiving nomeDaPessoa and ServicoDaPessoa...
asked by 25.02.2015 / 13:31
1
answer

Filter the date in pt-br at AngularJs?

I have a problem with making a filter in AngularJs in a date field. Below is the html: <td class="text-center" title="'Data'" filter="{ dataProposta: 'text'}" id="'data'"> {{p.dataProposta | date: "dd/MM/yyyy"}} </td> The...
asked by 18.07.2018 / 17:50
2
answers

Calculate time difference in AngularJS

I have two variables, startTime (01:00:00 AM) and endTime (02:00:00 AM), I need to calculate the difference between one and another, how would I do this in the angular? I saw that there is Date.parse() , but I need to pass a...
asked by 17.09.2015 / 07:50
2
answers

Execute function when arriving at Div

Is there a way to execute a function only when a div is on the user's screen? Example, I have a div that is in the middle of the site and when a user scrolls to it, or reaches it, I want a function to be executed. Is there an...
asked by 22.12.2017 / 11:59