Posts by Luiz Fábio • 333 points
24 posts
-
1
votes1
answer334
viewsQ: Angularjs-Charts - How to show monetary values in the chart
I’m using the library angular-charts.js I want to show the values that return from the bank, formatted in monetary values $scope.series = ['Valor Etapa', 'Valor Realizado', 'Resultado'];…
angularjsasked Luiz Fábio 333 -
0
votes4
answers1430
viewsA: Check if object already exists in the array by id
I was able to solve it this way if(typeof data == 'object'){ for(var i=0; i<data.length; i++){ var objExiste = $.grep($scope.contratos, function(n, x){ return n.idcontrato == data[i].idcontrato;…
javascriptanswered Luiz Fábio 333 -
1
votes4
answers1430
viewsQ: Check if object already exists in the array by id
I’m developing a project, where a user will assemble a list of contracts, searching for Cpf, only if he searches for the same Cpf 2 times, the contract repeats in the list, as I do to check if the…
javascriptasked Luiz Fábio 333 -
1
votes1
answer103
viewsQ: uibModal does not show the items in ng-repeat
I’m using $uibModal to display a list of options for the user, but is not appearing in the modal. Controller app.controller("ConsultaFiltroController", function($scope, $http, $uibModal, $log) {…
-
0
votes0
answers223
viewsQ: Jquery does not work with Angularjs
I got a Dashboard Bootstrap with Jquery, but when I try to use it with the single-page angularjs, the functions that are in jquery do not work, but I can do in Angularjs, what I wanted it to work…
-
1
votes0
answers65
viewsQ: Routeparams in Angularjs
I’m using Routeparams in Angularjs $routeProvider.when("/ReciboPagamentoCorretor/:NUMERO_RECIBO", { templateUrl: "view/ReciboPagamentoCorretor.html", controller: "ReciboPagamentoCorretorController"…
angularjsasked Luiz Fábio 333 -
2
votes1
answer989
viewsQ: Problem with Carousel Bootstrap
I am using a bootstrap Carousel and the slides are not going by themselves. This is the error that appears: Error: [$Compile:ctreq] Controller 'Carousel', required by Directive 'slide', can’t be…
bootstrap-3asked Luiz Fábio 333 -
2
votes2
answers367
viewsQ: User authentication with $rootScope
I am developing a system where depending on the level of the user it is redirected to a page .run(function($rootScope, $location, $http, config) { $rootScope.$on('$locationChangeStart',…
angularjsasked Luiz Fábio 333 -
2
votes0
answers78
viewsQ: Round up Javascript decimals
When calculating 5,605.50 * 0.08 (8%) the result is 448.40000000000003 I need to round off that 448.40000000000003 for 448.44 which is the exact 8% value on the calculator... if I use the…
javascriptasked Luiz Fábio 333 -
0
votes0
answers68
viewsQ: ERROR : POST http:/php/Reportfisico.php net::ERR_CONTENT_LENGTH_MISMATCH
Does anyone know why this error is happening when I go to download a spreadsheet... Being that if I refresh the page the error does not happen again Controller $scope.GerarPlanilha = function (){…
-
0
votes2
answers87
viewsQ: Cross origin not working with angulasJS and PHP
I am trying to download a file through the generating Angularjs in a php page: PHP page header("Access-Control-Allow-Origin: *"); include('conn.php'); $arquivo = 'Contratos_Pendentes.xls'; $tabela =…
-
1
votes1
answer802
viewsA: How to use sessions created in php in Angularjs (Ionic)?
I do it this way... on my page php I keep in just one session LOGIN.PHP <?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST'); header("Content-type:…
-
1
votes1
answer284
viewsQ: Problem with Datepicker Angularjs
Good night. I’m wearing a directive for a datepicker and I’m getting the following error. TypeError: Cannot read property 'split' of undefined at Object.DPGlobal.parseDate…
-
0
votes2
answers202
viewsA: How to Exchange Arrays query for Selects query in Mysql
Try it like this $tabela_modelos = array(); $tabela_modelos[] = array('id_marca' => 1, 'id_modelo' => 1, 'ds_modelo' => 'Vectra'); $tabela_modelos[] =array('id_marca' => 1, 'id_modelo'…
-
1
votes2
answers7485
viewsQ: Datepicker with Angularjs
Good evening, I’m using a directive for a Datepicker DIRECTIVE angular.module('app').directive('datepicker', function() { return { restrict: 'A', require : 'ngModel', link: function(scope, element,…
angularjsasked Luiz Fábio 333 -
0
votes1
answer108
viewsA: Problem with get data at angular js
What’s the mistake? try to do so $scope.comer = {}; $scope.GetData = function () { $http.get("https://www.sabeonde.pt/api/api_categorias_comer.php").success(function (data) { $scope.comer = data;…
-
0
votes2
answers1538
viewsQ: sum of values with ng-repeat
Good night I’m having a problem adding up values with ng-repeat Object 1 COMISSAO_CORRETOR: "5.0" CPF_CONTRATO: "xxx.xxx.xxx-xx" NUMERO_CONTRATO: "1234567" VALOR_BRUTO: "70000.00" VALOR_COMISSAO:…
-
0
votes1
answer1337
viewsQ: Taking the value of the table with ckeckbox and moving to the controller with Angularjs
Goodnight! I’ve got a problem I haven’t found a solution to First I make a query in the database that returns me some values and I play within a table with ng-repeat Table <tr ng-repeat="contrato…
-
1
votes1
answer4085
viewsQ: Login Screen with Angularjs
Good evening, I’m having trouble making the login screen in my application Index.html <body> <div ng-include"'dashboard.html'"></div> <div ng-view></div> </body>…
angularjsasked Luiz Fábio 333 -
1
votes2
answers1562
viewsQ: Filling form dynamics with Angularjs
In the system I’m developing, there will be a field input for the user to search if such CPF already exists registered in the Database, if you have I want to show all the data of this client in an…
-
1
votes1
answer515
viewsQ: Access more object-specific data
I made a GET in a table in my database $scope.corretor = {}; $scope.getData = function (){ $http.get("http://.php") .success(function(data){ $scope.corretor = data; console.log($scope.corretor); })…
angularjsasked Luiz Fábio 333 -
0
votes1
answer32
viewsA: show a second options when selected a certain value of a first option
I found an example exactly how I wanted it http://jsfiddle.net/TsxTU/1/
angularjsanswered Luiz Fábio 333 -
0
votes1
answer32
viewsQ: show a second options when selected a certain value of a first option
Good Night, I am developing a system, in which depending on the option the user choose in the first option, other options will appear in a second option, this would be the options in the first…
angularjsasked Luiz Fábio 333 -
4
votes3
answers239
viewsQ: jquery function does not work with routeprovider Angularjs
I’m making a web application with Angularjs and I did this routeprovider for single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", {…