Posts by Ramos • 612 points
146 posts
-
0
votes1
answer68
viewsQ: How can I set ranges in Ionic with a predetermined initial value?
I put in a Range to set the time and minutes. As I show in the view, but despite setting the "value" in the system the range always starts in the middle and worthless. How can I set my ranges to be…
-
0
votes2
answers3159
views -
4
votes2
answers530
viewsQ: Field Ionic search, need to close when user click "Go" or "OK" from Keyboard
I have a search field at the top, which is just a filter, so: <div class="bar bar-subheader bar-light"> <label class="item item-input item-floating-label"> <i class="icon ion-search…
-
2
votes1
answer984
viewsA: Open camera inside a div [Ionic]
Look, I’m not going to give a very detailed answer, just what I use. I believe there are better solutions. In my View, I put the following: <img ng-src="{{pathForImage(image)}}" style="width:…
-
0
votes2
answers222
viewsA: How to add a search bar to my home header (Ionic + Angularjs)
Try something like: <div class="bar bar-subheader bar-light"> <label class="item item-input item-floating-label"> <i class="icon ion-search placeholder-icon"></i> <input…
-
1
votes1
answer601
viewsQ: How can I set my Controller values for an Ionic / Angularjs form?
I have data in my controller that I want to play in my form. How can I play this data for my form? I will illustrate: My controller data is these variables: $scope.endereco_gps =…
-
0
votes1
answer411
viewsQ: How to place two ng-repeat in the same view, Ionic/ Angularjs?
I have to list two types of interconnected arrays in the same view. But I’m not being able to list. EDITED: BETTER EXPLANATION I have four tables: valuation, user_app, item_orders, cadastra_offer In…
-
0
votes1
answer35
viewsQ: How to not allow Backbutton using Ionic when there is a condition?
How can I hide (and/or change the direction of the Backbutton) when I have a condition in the View? I’m trying this way: if (window.localStorage.getItem("fonecedor_carrinho") != '0' &&…
-
2
votes1
answer676
viewsQ: How to sort across multiple fields with Ionic and/or Angularjs from a JSON?
I’m trying to sort fields dynamically by Ionic and Angularjs. I started using the plugin Modal Select, with the button like this: <button class="button button-stable button-block icon-left…
-
1
votes1
answer306
viewsA: How to hide a button in Ionic / Angular after it is clicked with ng-click?
I decided to add $ionicLoading.show(); in the starting function and $ionicLoading.Hide(); at the end of the function.
-
0
votes1
answer607
viewsA: Sidemenu on the Ionic
Try the following: On the Index between the : <body ng-app="nhaac" ng-controller="indexCtrl" id="{{ page_id }}"> <ion-nav-bar class="bar-assertive"> <ion-nav-back-button>…
-
0
votes1
answer306
viewsQ: How to hide a button in Ionic / Angular after it is clicked with ng-click?
I have a button, normal, with an ng-click calling a function: <button class="button button-full button-balanced" ng-click="fechaPedido(pedido.observacao )"> FINALIZAR PEDIDO </button> I…
-
0
votes1
answer88
viewsA: How to visually map an Ionic app?
I found something in Visual Studio: https://marketplace.visualstudio.com/items?itemName=AngularDoc.angulardoc-vscode But you can’t in the community version. I’ll have to do it manually anyway.... :(…
-
1
votes1
answer88
viewsQ: How to visually map an Ionic app?
all good? I wonder if there is any tool that draws the routes of an app? I wanted something like: App screens with route and controllers. My project is so big, I need a map... does it exist? Or…
-
0
votes1
answer231
viewsA: How to clear a service at the end of your use Ionic / Angularjs
Resolved with: var cart = sharedCartService.cart; sharedCartService.cart.splice(0, sharedCartService.cart.length); sharedCartService.total_qty = 0; sharedCartService.total_amount = 0;…
-
1
votes1
answer231
viewsQ: How to clear a service at the end of your use Ionic / Angularjs
I have a service that is so: angular.module('nhaac.services', []) .factory('sharedCartService', ['$ionicPopup',function($ionicPopup){ // OKAY, MAS ONDE ELE ESTÁ PEGANDO? // DECLARA AS VARIÁVEIS var…
-
0
votes1
answer725
viewsA: How to Filter by Category via Modal checkbox using Ionic / Angularjs?
I made a solution WELL TABAJARA. I took the | filter:q of the result. I changed my Checkbox modal (It’s not ideal, nor what I wanted. The ideal was to select more than one category) for a Radio:…
-
2
votes1
answer193
viewsQ: JSON in PHP with existing fields printing as Null, how to resolve?
I have a SELECT that is not returning some fields, such as "Notes". In the following image I list the array and see that it is like "Null" the field remarks: My return SQL is this: <?php…
-
0
votes2
answers158
viewsA: Accent error with xmlhttp.open (or in PHP) using Angujarjs / Ionic
Personal I decided to do this way in my PHP, using the utf8_decode: <?php header("Content-Type: text/html; charset=uft-8",true); header('Access-Control-Allow-Origin: *');…
-
0
votes2
answers158
viewsQ: Accent error with xmlhttp.open (or in PHP) using Angujarjs / Ionic
I have problems accentuating the sending of form data to the database, it gets the wrong accentuation, like: No = NO. How could I solve this problem? Follows my codes: My Controler: // ENVIAR DADOS…
-
0
votes1
answer398
viewsQ: Accentuation problem in array generation with Angularjs
I’m having trouble printing the user’s payment methods, they are being stored in my Localstorage with wrong accentuation: // PEGA $scope.formaspag (array2 no localstorage) E COMPARA COM OS CÓDIGOS…
-
1
votes1
answer725
viewsQ: How to Filter by Category via Modal checkbox using Ionic / Angularjs?
EDITED FOR BETTER EXPLANATION I have 3 types of filters: A research: <div class="bar bar-subheader bar-assertive"> <label class="item-input-wrapper textbox-search"> <i class="icon…
-
0
votes1
answer310
viewsQ: How to convert time in string to time from Ionic to PHP with Mysql?
Good morning guys, I am passing to the server a string that would be for time: 23:45 is an example. In my $_GET I’m trying to convert this way: $prazo_entrega_min = time("hh:mm",…
-
1
votes2
answers937
viewsQ: How to solve JSON.parse problem using Ionic and Angularjs
I have the following error to follow and can not solve: Error: Uncaught SyntaxError: Unexpected token ] in JSON at position 142 at JSON.parse (<anonymous>) at…
-
0
votes5
answers632
viewsA: PHP that returns null table fields that are neither empty nor null in Mysql
Solved using json_encode(utf8ize($Row)); Follow the new full PHP: $rest_api = array(); function utf8ize($d) { if (is_array($d)) { foreach ($d as $k => $v) { $d[$k] = utf8ize($v); } } else if…
-
1
votes5
answers632
views -
1
votes1
answer595
viewsQ: How to display a menu according to the type of user logged in with Ionic / Angularjs?
Hello, I have two types of users: buyer and seller. How to display a menu according to the type of user logged in with Ionic / Angularjs? Currently, and does not work well, I am putting on each menu…
-
1
votes1
answer1342
viewsQ: How do I take the auto increment ID using Mysql and PHP and use it later?
I am creating an API in PHP and insert. I need to take the ID created in this INSERT and use later. What I find material, it seems not recommended. Any solution? Thank you. My PHP: <?php…
-
0
votes1
answer47
viewsQ: How do I list what appears on the console in View?
I have this routine: $scope.array1 = window.localStorage.getItem("tipos_pagamentos"); var as_formas_pag = $scope.array1.split(';'); for (var i = 0; i < as_formas_pag.length; i++){ $scope.array2 =…
-
2
votes3
answers752
viewsQ: How to format Date field in Ionic Form / Angularjs
I have a date field on a form that looks like this: <label class="item item-input item-floating-label"> <span class="input-label">Validade da Oferta</span> <input type="date"…
-
0
votes1
answer146
viewsQ: How to take an array of a table and search another table in Ionic and Angularjs
I have a field on a table with a array number: 2;3;7;8;9;10;11;15;1 Each of these numbers corresponds to an ID of another table. I need to list the items of this other table according to the array.…
-
0
votes1
answer466
viewsQ: Error sending Ionic + PHP + Mysql form data
I am trying to send data from my form, already all validated to my database in Mysql with PHP, but returns me the following error and does not send: What can I do wrong? I need this help. My…
-
2
votes2
answers844
viewsQ: How can I filter, both by Category and by Price?
I have 2 filter buttons: Sort by Price - That Works. Sort by Category - Doesn’t Work. I would like to operate the filter both by price and by category. Both are modal and I’m doing it this way: O…
-
2
votes1
answer918
viewsQ: Upload image with form in Ionic or Angular
I want to take images of the device and upload the image to a certain path on my server. I’m trying to use the Cordova Image Picker with Base 64. In my controller I use:…
-
1
votes1
answer517
viewsQ: How to Filter with Two Conditions using Modal in Ionic
I created a modal that filters only the categories that are registered, now I would like to take the selected items in the Checkbox of this modal and filter according to the categories selected by…
-
0
votes1
answer367
views -
0
votes1
answer557
viewsQ: How to insert a data set of an array into the WEBSQL with Ionic?
I want to insert a data set in a local table (WEBSQL). The way I’m doing just inserts the last array set, wanted to store all objects. To create my Websql I created this JS: (function(){ "use…
-
1
votes2
answers1391
viewsQ: How to pick up and store an array of data only if Quantity > 0 in Ionic or Angular?
I would like when clicking the "Continue Ordering" button to pick up only the items with Quantity > 0, store in an array of new objects. My View: <ion-view view-title="Comprar Bebidas…
-
1
votes1
answer1345
viewsQ: How to add or remove amount of items in an Ionic List
I am trying to add and remove quantity in a list of products, as shown in the image: This is the view of this screen: <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false" >…
-
0
votes0
answers305
viewsQ: How to create a field dynamically in Ionic and/or Angularjs?
Have a list of products, but my list does not have the quantity field, and nor should have because it would be stock control and that is not it. I want the quantity field so when you click (+) add 1…
-
1
votes0
answers198
viewsQ: Add items to the local database as you select from the list
I want to make a list of products and as the person is clicking on Add (+) or Decrease (-) go showing the quantity in (+) or (-) and when clicking on "Continue Ordering" Register all items listed on…
-
1
votes1
answer1043
viewsQ: Extract objects in Ionic
I’m trying to get the selected data from a Checkbox in the Ionic. My View is like with the CheckBox: <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false"> <div class="bar…
-
0
votes1
answer91
viewsA: Do not read the backend in View - Ionic + Angularjs:
I changed my controller to: $scope.itens = []; $http.get('http://nhac.esy.es/lista_restaurantes.php') .success(function(retorno){ $scope.itens = retorno; console.log("leu"); console.log($scope.itens…
-
1
votes1
answer91
viewsQ: Do not read the backend in View - Ionic + Angularjs:
I’m able to read my backend, but I can’t show the data in my view, which I might be doing wrong? In my controller I did the following, and at first I asked to read my backend:…
-
1
votes1
answer1674
viewsQ: Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight
How can I eliminate this mistake? XMLHttpRequest cannot load http://www.ramosdainformatica.com.br/food/apinhac.php. Request header field Content-Type is not allowed by Access-Control-Allow-Headers…
-
0
votes2
answers615
viewsQ: Error and Mysql: [ngRepeat:dupes] Duplicates in a Repeater are
I’m developing an example with IONIC but it’s giving the error: ionic.bundle.js:19387 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique…