Posts by Raphael Vizoni • 159 points
24 posts
-
0
votes1
answer265
viewsA: View mysql data using Angularjs/codeigniter
Your code is returning the return of the function, to the function Productosservice.returnedDados(). I believe a Return earlier would work: function ($scope, $http, $log, $timeout, ProdutoService) {…
-
0
votes1
answer90
viewsA: A page with a list of other pages
itemTapped(event, item) { this.navCtrl.push(ListPage, { item: item }); } /// OUUU /* itemTapped(event, item) { this.navCtrl.push(item); } */ <ion-content> <ion-list> <button ion-item…
-
1
votes1
answer43
viewsA: Ionic Authentification
The Route Verification part, read the section LIFE CYCLE from here, I think what you need is the 'ionViewCanEnter' When the user logs in and you receive the API token, you can store this token in…
-
0
votes2
answers438
viewsA: Save data clicked on a JSON
A good practice of Angular is to leave the Controller only to redirect content, while your business rule stays in a Service (or Factory, whatever). You can create a Factory with the objects you want…
-
0
votes1
answer201
viewsA: Ionic 3 plugin_not_installed
When you will install the plugins by Ionic you are using the flag --save? Another thing that may be happening is a plugin not being available in the version of your platform. For example, in…
-
0
votes1
answer330
viewsA: Build failed with an Exception
See if you already have the key _JAVA_OPTIONS with the value -Xms512m Control Panel > System > Advanced (tab) > Environment Variables > System Variables > New:…
-
0
votes2
answers205
viewsA: API maps display address
You can use the Google Maps Geocoding API (see Reverse Geocoding) At this link there is a DEMO what you want, it’s worth taking a look.…
-
0
votes2
answers295
viewsA: Ionic 3 - Error generating build --Prod
I got: Apparently I had to change the version of firebase and angularfire2. Commit Link…
-
0
votes4
answers7774
viewsA: Calling javascript function only once
Creates a boolean flag. var jaFoiClicado = false; // começa com false pra poder ser clicado pela primeira vez function clicarBotao() { if (!jaFoiClicado) { console.log("primeira vez"); // substitui…
-
0
votes2
answers96
viewsA: How to listen to a request at Angular 4
Create an attribute on the page to make the Property bind: @Input() meuAtributo: any;// o tipo você que define this.userService.lista() .subscribe( (data: any) => { this.meuAtributo = data;…
-
-1
votes2
answers295
viewsQ: Ionic 3 - Error generating build --Prod
I don’t want to generate the --Prod version using the "npm run build --Prod command". (I made a script that says "npm run Prod" means "npm run build --Prod", is in my package.json) Link to the…
-
0
votes1
answer646
viewsA: Recover selected value from a select in the database
Is there an error in the console/page? The neighborhood select seems correct. One thing I don’t understand in your code is if $rua is an ARRAY of streets, or if it’s just an option. If there is more…
-
1
votes1
answer858
viewsA: Ionic ng-if comparing values
You can use ng-class! Basically, it works as follows: You pass one condition to him, and if that condition is true, he applies that class, if not, he applies another. So what you should do is:…
-
1
votes1
answer366
viewsA: doubts firebase with Ionic (ion-select)
In this link there is a firebase tutorial, for sure will help you. This another link refers to ion-select documentation. The advantage of using Firebase is that you don’t need to encode the back…
-
0
votes1
answer211
viewsA: Run image from google maps not working
There was a JS lib called Markerwithlabel where you could assign an image as a marker, and even type a text on top of the image. In your case, you can use any image, rotate the image of this marker…
-
2
votes1
answer300
viewsA: Error making request via POST
There is no HTTP status 0. This 0 means the return of your request. The second part of the error message says URL: NULL. One thing I noticed was the following excerpt just below exporting the…
-
0
votes1
answer563
viewsA: How to pass bidirectional parameters to an Angularjs directive
Have you seen if {{author.id}} has any value or if it comes Undefined? Test with static value and see if it works. One detail I saw in the documentation is that in . JS of the directive you use the…
-
0
votes1
answer232
viewsA: http request method post Ionic 2, angular 2
Ronald. You are doing a POST but you are not sending any data to the server. Just below, you say you want to do a web-service query, right? For that, the correct method is GET. Would something like…
-
1
votes1
answer247
viewsA: Hide image from a button
IONIC 2: Puts an ID on the image: <ion-content> <ion-grid> <ion-row> <ion-col col-4 *ngFor="let img of array.image" > <button id="botao" (click)="mostraImagem(img)">…
-
0
votes1
answer359
viewsA: Appear list only when Searchbar is filled - Ionic 3
You can do a *ngIf in the template to see if the searched field is different from null, type: *ngIf="termoPesquisado" Or replace that part: if (val && val.trim() != '') { this.items =…
-
1
votes1
answer111
viewsA: Ionic Shopping List
Samuel, what version of Ionic are you using? Will you persist with this data in a database? Or is it all local? In general, what you need is to have a screen for the listing (array) of the available…
-
0
votes3
answers969
viewsA: Consulting a JSON via an ANGULAR POST
Through the function call Controller Service, I call the function send my Factory that performs the POST q vc ta wanting. .controller('meuController', function ($scope, meuServico) {…
-
0
votes1
answer138
viewsA: Change color of the clear input "X" icon
Ever tried to create a class and use it? Or use Style itself in input. For example: <ion-item> <ion-input placeholder="Clear Input" clearInput style="color: #ff0000"></ion-input>…
-
0
votes1
answer154
viewsA: Ionic - Problem loading Googlemaps to emulator and mobile device
When the page goes blank there is some error. Check the Chrome console (How to open the console). It is very strange that you can run in the Browser and not in the Emulator/Mobile. Which command you…