Posts by Lucas Maia • 101 points
5 posts
-
1
votes2
answers102
viewsA: Active menu item but no longer works as link
This happens due to e.preventDefault() added in the function of Callback of click. That one preventDefault() prevents the click event from performing its standard procedures, such as submitting an…
jqueryanswered Lucas Maia 101 -
3
votes1
answer260
viewsA: Problem loading data from a table with Angularjs and Rails api
The object $scope.listaProdutos needs to refer directly to an array for ng-repeat to work. Replacing the line $scope.listaProdutos = data; for $scope.listaProdutos = data.produtos; should solve the…
-
2
votes1
answer74
viewsA: I am trying to change the property value of an object by ng-click:
Due to the Angular date-Binding, modifying the value of a variable in the scope, this change will be automatically reflected in the view. That is, to show the button, just scroll through the items…
-
0
votes2
answers74
viewsA: Ranking order of time
On the line fin = hr + ":" + min + ":" + segs of this function, you ensure that the return of this function is a string, in the form HH:MM:SS; then you can make a direct string comparison to do the…
-
1
votes1
answer1066
viewsA: Format date in Angular for Java.util.Date
The dates sent to the backend of vraptor must be in the format expected by the serializer used in your application. Apparently, in this case, the gson is being used, and the format expected by it is…