Posts by Eduardo Araya Jezine • 319 points
11 posts
-
-1
votes3
answers201
viewsA: Which destructive and non-destructive way to get the last element of an array?
In php just use the method end() and it returns the last element of the array. Read the documentation for more information: https://www.php.net/manual/en/function.end.php…
-
3
votes1
answer663
viewsA: How to receive data in an React Native component?
You need to pass the parameters through the route using the navigation of the react navigation, adding an object with the information: navigation.navigate('Home', { post: postText }); To get the…
-
2
votes1
answer82
viewsA: Angular index problems 8 with Ks-modal-gallery
When you add an image and do the images.push(imagem), the array is updated, but the component itself does not create the bind of the variable. It is a stop of Angular itself. In order to update the…
-
2
votes1
answer804
viewsA: core.js:9110 ERROR Typeerror: Cannot read Property 'onDidDismiss' of Undefined
You must return the loading on your service! import { Injectable } from '@angular/core'; import { LoadingController } from '@ionic/angular'; @Injectable({ providedIn: 'root' }) export class…
-
4
votes1
answer152
viewsA: Pdf preload with Javascriipt or Jquery
You need to create a condition for when it is a PDF file, it use the tag iframe, follow the method as I would: function preloadFile($input) { const screen = $('#preLoad'); if ($input.files.length…
-
1
votes1
answer516
viewsA: Ionic 4 - Updating a component with modal data?
There are many ways you can do this, using services/providers or sending a callback as input to modal, I’ll show you the example of callback: async mostraBeneficios(){ const modal = await…
-
0
votes1
answer149
viewsA: What is the function of daughter routes at the angle?
If I understand your question, just add the router-outlet component in the component that has the daughter routes, the Children routes serve to be rendered inside the parent component, thus creating…
-
0
votes1
answer485
viewsA: How to send a token to Header Authorization (Node/Ionic/Angular)
subscribe returns in the first callback, the successful response of your API simply change the following code snippet: this.usuarioService.authenticate(email, senha) .subscribe((response) => {…
-
0
votes2
answers43
viewsA: Error while running IONIC server
Make sure that rxjs project is installed if n is installed with the following command npm install rxjs --save
-
1
votes1
answer285
viewsA: Uncaught Error: Template parse errors: Can’t bind to 'users' Since it isn’t a known Property of 'app-user'
Man , to make the data-bind you need to add the @Input developer to the user.component.ts file before the user variable, and also import from the angular/core, so the angular understands that it is…
-
-2
votes2
answers172
viewsA: Trying to make a for on a Vue-js object
const user = {}; user.name = "Eduardo"; user.idade = 21; for(let item in user){ // item => Nome da propriedade // user[item] => Valor da propriedade …