Questions tagged as 'ionic'

1
answer

Ionic - Change application bar top color

Hello, I'm developing an application with Ionic3 and when I start the application in the emulator runs cool, however it is common in applications the black bar stay in the color of the header but in a darker tone. How to do this? Anotherthin...
asked by 03.08.2018 / 17:04
3
answers

Querying a JSON via a POST on ANGULAR

I have an app in IONIC which should consume a JSON via POST, so I passed through POSTMAN I have a URL, the version and a token defined as I do to pass this via Angular, and return my JSON . So there's my data I have in POSTMAN Key Value Des...
asked by 12.11.2017 / 19:19
1
answer

Asynchronous angular responses 4

I am making a request, and I am expecting a return, however it is asynchronous, it may take time or not, in my case I just want to display a message on the screen. Hours it sends undefined and hours returns me the correct message. D...
asked by 16.06.2017 / 16:32
1
answer

How can I set values from my Controller for a form in Ionic / Angular Js?

I have data in my controller that I want to play on my form. How can I play this data for my form? I'll give you an example: My controller data is these variables: $scope.endereco_gps = window.localStorage.getItem("endereco_gps"); var r...
asked by 17.04.2017 / 14:02
1
answer

Extract objects in Ionic

I'm trying to get the selected data from a Checkbox on Ionic. My View is like this with CheckBox : <ion-view view-title="Comprar Bebidas Adicionais" hide-nav-bar="false"> <div class="bar bar-subheader">...
asked by 26.08.2016 / 18:33
2
answers

Push in JSON Object AngularJS

How do I add 1 item to a json object in angularJS. In case I have: {COD: 29, MOTIVO: "teste"} And I'd like you to stay: {COD: 29, MOTIVO: "teste", ID : 12345789} Home I tried the following: $scope.cadastroSolicitacao = function(...
asked by 10.02.2017 / 20:47
2
answers

Filter in Json in AngularJS

I would like to filter this JSON by COD and bring only the chosen one. I'm bringing the value of the code through the url and would like to filter only to display the name of the chosen option. NOTE: The user will not enter the value because it...
asked by 10.02.2017 / 16:32
1
answer

InAppBrowser plugin does not work (Unknown provider)

I have the following code: <input type="text" id="input-url" name="input-url" placeholder="URL do Servidor"> <button class="button button-block button-dark" ng-controller="AppCtrl" ng-click="openBrowser()">Definir</button>...
asked by 21.06.2016 / 15:57
1
answer

Request the API using angularjs

I'm still new to development using AngularJs and I'm having trouble accessing an API: .controller('RegulamentoCtrl', function($scope, $state, $http, $ionicPopup, AuthService) { $http.get('http://rest-service.guides.spring.io/greeting')...
asked by 06.10.2016 / 22:22
1
answer

Error installing ionic in ubuntu

When I install the ionic give Next error: npm ERR! Linux 4.2.0-35-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "cordova" "ionic" npm ERR! node v5.10.1 npm ERR! npm v3.8.3 npm ERR! path /usr/lib/node_modules/.staging/a...
asked by 18.04.2016 / 21:32