Posts by klebers • 29 points
11 posts
-
0
votes1
answer30
viewsQ: Source URL in Angular REST request
Hello In the REST request of the Ionic application with Angular is automatically added the source URL: http://localhost:8100/127.0.0.1:5000/medicao? start date=2020-12-13&end date=2020-12-20…
-
0
votes1
answer402
viewsA: How to limit in Angular the number of characters in the text by inserting a "Read more" button to see the rest?
You will have to try a variation of this code: @Component({ selector: 'slice-string-pipe', template: `<div> <p>{{str}}[0:4]: '{{str | slice:0:4}}' - output is expected to be…
-
0
votes1
answer63
viewsA: Event (click) being undone by (Blur)
Try it this way: <div class="row" [formGroup]="meuFormulario" (ngSubmit)="submitFormTaxa()"> <div class="cl-ds-3 cl-tb-2 cl-mb-2"> <label class="label">Taxa</label> <div…
-
0
votes1
answer46
viewsA: Firestore Cloud emulator not running properly
You installed the angular/fire? https://github.com/angular/angularfire The library itself is in charge of adding the token, it follows the code I use: export class AuthenticationService {…
-
0
votes1
answer29
viewsA: block data recording offline Firebase
Can solve with fromCache service ts. async addPedid(pedido: Pedido) { return await this.empresasCollection.doc<Empresa>(pedido.id_empresa).get().toPromise().then( snapshot => { let retorno…
-
-1
votes1
answer29
viewsQ: block data recording offline Firebase
I have this function that performs data recording in Firebase: addPedido(pedido: Pedido) { this.pedidosCollection.add({ ...pedido, log_criado: this.timestamp }) } If you do not have internet…
-
1
votes1
answer83
viewsA: I cannot pass the key attribute of the object I want to edit
Remove (ngSubmit)="updateDevice()" and add on button <button mat-raised-button color="primary" (click)="updateDevice()">Atualizar</button> Test in updateDevice() on Edit.ts with…
-
0
votes1
answer319
viewsA: Change Firebaseui template language
I got translated following these steps: I cloned the repository git clone https://github.com/firebase/firebaseui-web within the firebaseui-web directory ran npm install npm run build build-js-pt-BR…
-
1
votes1
answer75
viewsA: Angular installation
Each project has its own dependencies that need to be installed: install npm: apt install npm check that they have been installed: nodejs -v npm -v ng version Upgrade: Stable node: Install the…
-
0
votes1
answer215
viewsA: Reactive Forms Ionic 4, data call
Validateform has no street, let only ! Validateform.Valid in if
-
1
votes1
answer319
viewsQ: Change Firebaseui template language
I need help changing the Firebaseui login template in Angular to English. Content from: user-signin.component.ts import { AngularFireAuth } from '@angular/fire/auth'; import * as firebase from…