Posts by José Nicodemos Maia Neto • 94 points
7 posts
-
0
votes1
answer527
viewsA: Request HTTP Ionic 2 GET
Simple, insert the angular Http and then make the request. After that, just make an Alert using some Ionic Component. Depending on the website you are requesting, you may happen to have a problem…
-
0
votes1
answer183
viewsA: Ionic 2 - Any type variables
This happens because the DI (dependency Injection) "system" knows what it needs to inject according to the type of parameter into the constructor(). Example: constructor( private navController:…
-
0
votes1
answer191
viewsA: What is the implementation in Ionic 2 to avoid code repetition?
You can do this by creating components in Ionic2. Example 1: https://www.joshmorony.com/how-to-create-a-custom-loading-component-in-ionic-2/ Example 2: I made a progress bar component. To make it I…
-
0
votes1
answer126
viewsA: Problem with typescript + ionic2
Try importing without the suffix .ts export {MinhaModelA} from './minha-model-a'; Note: If it does not work, let me know that I will delete the answer.…
-
-1
votes2
answers182
viewsA: Ionic 2 Reading json
The code alert(data.id); will not display anything at all. After all date is a vector. To access the id attribute, you need to specify the vector position or use a loop (for, foreach, etc). Example:…
-
0
votes1
answer169
viewsA: Ionic 2 http request error
In the.php test, you need to add some HEADERS to the answer (also known as CORS). There’s an example here: ionic2 - photo upload via server if (isset($_SERVER['HTTP_ORIGIN'])) {…
-
1
votes2
answers503
viewsA: ionic2 - photo upload via server
Try to adjust the options. I think httpMethod should fix it. When I used (successfully) this plugin, it was not necessary to use headers. let opcoes: FileUploadOptions = { chunkedMode: false,…