Posts by Leandro Machado Costa • 101 points
7 posts
-
0
votes1
answer919
viewsA: Problem with CORS using Vue + Laravel (only GET method works)
A hint if you want to run everything on your machine has Chrome extensions that release Cors then you come back when browsing the internet.…
-
0
votes1
answer782
viewsA: How to make v-money recognize zeros after the comma
Try to make it equal: new Vue({ el: '#app', data() { return { price: '123,50', money: { decimal: ',', thousands: ',', prefix: 'R$ ', suffix: ' #', precision: 2, masked: false /* doesn't work with…
-
7
votes4
answers18668
viewsA: Javascript money format with Angularjs and jQuery
Simplest and default resolution. Use the I18n of Angularjs so putting it in Portuguese will get comma instead of point and everything in Brazilian standards…
-
1
votes2
answers848
viewsA: Problems with array in Angularjs
There you wrote the array in the wrong format, the correct would be like this: $scope.my_array = [{'teste':{'name':'Teste 123'}},{'lorem':{'name':'Lorem Ipsum'}}] a list of objects always have to…
-
0
votes3
answers3091
viewsA: How to show or hide an element with Angularjs, without creating variable
<table class="table" ng-app="app" ng-controller="MainController"> <tr> <td> <input type="checkbox"> </td> <td>Nome</td> <td>Ano 1</td>…
-
0
votes1
answer661
viewsA: Create menu of a JSON file using Angularjs
Opa Lucas, First convert to a json, because the angular is thinking that it is a String and is placing these bars. var novoJSON = angular.fromJson(objetoDoJson); so you can play with the object and…
-
2
votes2
answers12115
viewsA: Doubt with ng-if or ng-Ide Angularjs
The ng-if was not made to conceal the div but delete from the code when opening the page, if false a certain code will disappear. It is right to use the ng-show and the ng-hide to show and hide,…