Posts by GustavoSevero • 2,567 points
212 posts
-
1
votes2
answers8025
viewsQ: How to use variable in more than one controller in Angularjs
I need to use a variable, at the angle, that I can use in more than one controller. Yes controllers are in the same file. How can I do that? .controller('denResCtrl', function($scope, $window,…
angularjsasked GustavoSevero 2,567 -
2
votes1
answer1332
viewsQ: How to change the date format in java script?
I’m taking the date informed by the user, who selects from a datepicker. In the form the format is displayed right dd/mm/yyyy, but the problem is when I take the date to play in a variável, she…
-
0
votes2
answers80
viewsQ: How do I put email in the login form?
I made a web and mobile app. After the user’s registration, I am taking the email and saving it in the Torage locale. How can I place this email in the login form email field? <ion-view…
-
3
votes1
answer3848
viewsQ: How to disable field and button in Angularjs?
I have a text field and button to send this text. You’re having a little delay, after I click the send button until the message is sent. Then, I need to disable the text field and button, until the…
-
0
votes2
answers307
viewsQ: Localstorage doesn’t keep names with accents?
My Ionic app stores user data, as a name, in localStorage. I went for a test, logged in my wife’s name, Flávia, but when I looked at the console in the Resources tab, the name field was null and the…
-
0
votes1
answer897
viewsQ: How can I get the date and time in angular and send it to the comic book?
I found that code: angular function to pick up date and time I tested it and it works great. But I need to take this date and send it to the bank, along with other data. How can I do this? My code…
angularjsasked GustavoSevero 2,567 -
0
votes1
answer130
viewsQ: How to make php return status?
next. I am doing a validation with angular and php, for when a user is registering, be checked if such user and password already exist and is not registered again. And I need php to return some…
phpasked GustavoSevero 2,567 -
0
votes2
answers4144
viewsQ: How to clear input field with angular?
I’m trying to clear the text field after Ubmit, but I’m not getting it. Follow my own codes html: Here in html, I changed from ng-model="msg" to.msg message Send angular: $scope.mensagem = { msg:""…
angularjsasked GustavoSevero 2,567 -
0
votes0
answers884
viewsQ: How to validate zip code with Angularjs?
I have an application where I use zip code to be part of the registry. Only the CEP is enough and would need to be validated the CEP and at the end of the validation trigger a function. How can I do…
angularjsasked GustavoSevero 2,567 -
0
votes0
answers96
viewsQ: "Duplicates in a Repeater are not allowed" message on my console
I’m using angular and php. The following message appears on my console: Error: [ngRepeat:dupes] Duplicates in a Repeater are not allowed. Use 'track by' Expression to specify Unique Keys. Repeater:…
-
-3
votes1
answer58
viewsQ: Why, only part of the data, appear in php?
I am doing a select, in a table of my database, to get all messages from all users. However, only 1 user messages appear, others do not! php: <?php ini_set('display_errors', true);…
-
0
votes0
answers735
viewsQ: Why doesn’t my Ionic app run in the browser?
I made an app with Ionic and runs perfectly using command ionic serve. But when I try to run it in the browser it doesn’t work right, why this? When running the app in the browser the following…
ionicasked GustavoSevero 2,567 -
0
votes1
answer329
viewsQ: Can I do more than 1 Insert using PDO?
I want to do more than 1 Insert using PDO and a php file, can I? Example: <?php ini_set('display_errors', true); error_reporting(E_ALL); header('Access-Control-Allow-Origin: *');…
-
0
votes1
answer84
viewsQ: How to do while in PDO and data manipulation?
I need to do a while with PDO and pick up each dice, manipulate them and play within an array. How can I do that? My php: while ($linhaMsg=$pegaMsgsLogra->fetch(PDO::FETCH_ASSOC)) { @$idAviso =…
phpasked GustavoSevero 2,567 -
2
votes1
answer236
viewsQ: How to get data Object in php?
I am passing an object from angular to php, but php insisted and "say" that the data that is coming is not an Object, what should I do? How can I get this data in php? Just follow my codes angular:…
-
-2
votes1
answer252
viewsQ: How to get the last id generated in php using angular?
Next, I am registering cep and I need to get the id of this cep, recently registered to insert in the table of users. I tried to do in Pdo using the same php file that I registered the cep... Gave a…
-
1
votes0
answers154
viewsQ: My data does not go to BD using Ionic and php
I’m developing an Ionic app. When saving, the following message appears on the console: http://localhost:8888/systems/systems_web/Ionic/vcApp/www/php/salvaEndereco.php 500 (Internal Server Error)…
-
1
votes1
answer115
viewsQ: Form data does not appear
I’m developing an app, in Ionic, an address book. After the form filled, added a console.log(address) in the controler to see the data, I click the save button and the data does not appear and still…
-
4
votes2
answers216
viewsQ: Error in php data return in Ionic
I’m making an Ionic app in which I place the zip in a field and the backend returns me all other data such as state, city, street... But something strange happens, it returns the whole structure of…
-
0
votes2
answers148
viewsQ: Console error warning when running Ionic app
created an app by Ionic Creator. I have a form for registration and when clicking on any field of the form the following warning appears in the console: 'webkitMovementX' is deprecated. Please use…
ionicasked GustavoSevero 2,567 -
11
votes1
answer7086
viewsQ: What is the difference between Factory, service or controller in Angular?
Next, in practice, what’s the difference and how to do service with . service, . Factory and controller? service js. angular.module('app.services', []) .factory('BlankFactory', [function(){ }])…
angularjsasked GustavoSevero 2,567 -
3
votes3
answers332
viewsQ: How to make the data appear in the fields in Angularjs
I’m coming in with a zip code and a search is made and brings me the other data... However, I want the data to be displayed, each in its own field, as they will be entered in the database. How to…
-
1
votes1
answer115
viewsQ: What is this warning on the console using Angularjs?
I’m trying to run a simple code with angular and this warning stop on the console: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.2/$injector/modulerr? P0=app&p…
-
1
votes1
answer6234
viewsQ: How to use Angular onBlur?
I want it to be shown on console the value cep I typed in the field input after the field loses focus. But this code of mine is not doing that. html: <body ng-controller="appController">…
-
1
votes1
answer848
viewsQ: Problems with Mysql Server for OS X
Hello, Has anyone here managed to install the MySQL Server for Mac? I installed it, but I can’t start it! I click on its panel button, ask for the password, type and nothing. Trying for the…
-
0
votes2
answers1188
viewsQ: How to make paging with Angularjs and php?
How to make paging with angular and php? My php: <?php include_once("conPDO.php"); $pdo = conectar(); $buscaCidades=$pdo->prepare("SELECT * FROM cidade"); $buscaCidades->execute(); $return…
-
0
votes0
answers229
viewsQ: How to create database via sql and utf8_bin?
I have the following sql script: CREATE TABLE IF NOT EXISTS `pais` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(60) DEFAULT NULL, `sigla` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`) )…
-
3
votes1
answer775
viewsQ: How to convert latin1_swedish_ci data to utf8_bin in php?
I got an SQL script that "mounts" 3 tables, one with country, one with states and one with Brazilian cities. The script makes the collection, of the names, in latin1_swedish_ci and I needed it to be…
-
1
votes2
answers598
viewsQ: How to list parents and city in Anglican?
Here’s what I wanna do: Brazil Rio Grade do Sul Brazil Rio de Janeiro ... and so on. It has how to do it in a table? <table width="500" border="1"> <tr> <td width="200"…
-
1
votes1
answer332
viewsQ: How to delete data using angular, php and ui-route?
I am trying to make a method to delete a record from the bank and the following message seems on the console: GET…
-
-2
votes1
answer910
viewsQ: Creating a controller in Angularjs
I’m riding a controller where one of the features is to take a data in the bank through your id. However, nothing appears in the console when I put this Code that displays countries on the screen…
angularjsasked GustavoSevero 2,567 -
8
votes2
answers7334
viewsQ: How to redirect page in Angular?
After finishing the data update, I want the system to redirect the user to another page. I am using ui-router and I was told to use $state.go. But how do I use this command? Follows my code:…
-
3
votes1
answer281
viewsQ: Difficulty updating data with angular and php
Good afternoon I’m trying to update the database and I can’t. If I use mysqli, the following warning appears on the console:…
-
1
votes1
answer951
viewsQ: Page . html does not want to appear
I’m making an application with Angularjs. I have pages being called, however, a single, does not appear. Follow my codes: app js. var app = angular.module("vc", ["ui.router"]);…
-
-3
votes1
answer1197
viewsQ: How do you use the Angular . run directive?
How the directive is used .run angularjs?
angularjsasked GustavoSevero 2,567 -
1
votes2
answers3297
viewsQ: How to set data in localStorage
I have the following code: $scope.loginUser = function (user) { console.log(user); $http.post("admin/php/login.php", user).then(function(response){ if(typeof(Storage) !== "undefined") {…
-
0
votes0
answers244
viewsQ: login with php and Angularjs
I created a login form. I’m almost done authenticating and all that’s left is to be able to redirect the user to the right page. Angularjs: app.controller("LoginController", function ($scope, $http,…
angularjsasked GustavoSevero 2,567 -
0
votes0
answers64
viewsQ: How to make data return in php array
I need to return the data in an array. I’m doing it, but the data doesn’t return: <?php ini_set('display_errors', true); error_reporting(E_ALL); include_once("conexao.php"); $pdo = conectar();…
-
0
votes0
answers83
viewsQ: PHP is not returning request data
I have 2 drop-downs. When a value is selected in the first one, the second one should list data referring to that value. However, my php, I think, is not getting the data sent. Can anyone help me?…
-
3
votes2
answers792
viewsQ: Format date and monetary value to save to database
I’m extracting data from a file .xlsx. converting them into .csv and showing it on screen. So far so good, however, I want to play this data in a database, using PHP, but for this I need to convert…
-
0
votes2
answers1188
viewsQ: How to load dropdown list using Angularjs and php
I was able to load a drop-down using php. Now I need to load the second drop-down, based on the selection of the first. Someone knows how to do it? Thanks. <body ng-app="app"…
-
0
votes0
answers59
viewsQ: Problem import of . csv in php
I’m looking to import data .csv into my database. The problem I’m having is this, it’s "sets" of data (data, valor, descrição), by line, being that on the screen is being displayed one below the…
phpasked GustavoSevero 2,567 -
1
votes1
answer3538
viewsQ: Taking xlsx file with HTML and PHP
I need to import data xlsx to a system I created. HTML <form method="post" action="" enctype="multipart/form-data"> <input type="file" name="arquivo"> <input type="submit" name="pegar…
-
2
votes0
answers313
viewsQ: Saving data in local bank with Ionic
Is it possible to save data to a local database on my computer by running the app on my phone? For example, I created an app on Ionic, where I register names, and when I save it, I want it saved to…
-
2
votes1
answer186
viewsQ: Angular factory to insert data into the database
How do I create a function, in Factory, to enter data in the database? I have it: .factory('pegaContas', ['$http', function($http) { var _getContasEntrada = function(id_empresa) { return…
-
0
votes1
answer173
viewsQ: Database data does not appear on the screen, using angular and php
This is my Angular Code: <script> angular.module("fluxo", ["ngRoute"]); angular.module("fluxo").config(function ($routeProvider) { $routeProvider.when("/entradas", { templateUrl:…
-
1
votes1
answer397
viewsQ: How to pass data from Angular to a php class?
I have the following code in Angular: <script> angular.module("fluxo", ["ngRoute"]); .factory('factCliente', ['$http', function($http) { var _getData2 = function(id_empresa) { return…
-
0
votes2
answers125
viewsQ: Syntax error warning in the console running Angularjs
I have the following code, which uses Factory: angular.module("fluxo", ["ngRoute"]); .factory('factCliente', ['$http', function($http) { var _getData2 = function(id_empresa) { return…
angularjsasked GustavoSevero 2,567 -
0
votes1
answer893
viewsQ: How to validate session with Angularjs and PHP?
After the login is done, how can I validate the user when it goes from one page to another, within the system, using Angularjs and PHP? Because when I worked, only with html and php I did it this…
-
1
votes1
answer438
viewsQ: How to call PHP function in another Angularjs function?
I have the following Function in Angularjs: angular.module("fluxo").controller("fluxoCtrl", function ($scope, $http) { var mostraTodasContasEntradas = function () {…