Questions tagged as 'typescript'

1
answer

Angular 6+: Page update goes to the Login area of the application

I performed the composition of my CanActivate and CanLoad through the class LoggedInGuard. The problem is that whenever I refresh the page, I'm redirected to the Login page, even logged in. Below my LoggedInGuard class @Injectable() export c...
asked by 24.12.2018 / 02:21
1
answer

Form control required depending on the selection of another form control angle

I have the following mat-checkbox: <mat-checkbox formControlName="formControlIdentificador" color="primary" class="correcaoClasseCheck" labelPosition="before"></mat-checkbox> <input formControlName="formControlNomeIdentificador...
asked by 12.11.2018 / 22:29
0
answers

datepicker is not a function in typescript

I want to implement datepicker in a typescript project. I tried to initially install the datepicker by npm but I could not ... so I'm trying the standard way anyway. I originally imported <link rel="stylesheet" href="https://stackpath...
asked by 27.10.2018 / 03:24
1
answer

Add a key / value to an object in typescript

I have an array object that I want to add a key and value in it. I tried something like: this.testeobj//meu objeto this.testeobj[0].push({oi: 'teste});     
asked by 27.10.2018 / 02:12
0
answers

Problem in Function IONIC 2 Typescript - Function executes only once

Good Night! I have a problem with a function in Typescript (Ionic 2). The function performs a search / filter from the contents of the tags. The user enters the number they want to fetch and the function filters from the number entered. The f...
asked by 07.08.2018 / 04:43
1
answer

Redeem data from another angular component

I have a component called login that when login completes the data of the user object, I need to get the "charge" field of this object and receive it in another component. I've tried: login.component.ts: public usuario: Usuario = new...
asked by 06.07.2018 / 17:21
0
answers

Search filter on Ionic

I made a filter to perform a search on Ionic 3. Here is my TypeScript code: filtrar() { //Filtra this.auto.storage.get("acesso").then(sessao =>{ var dados = {"token":123,"rg":sessao.rg, "data": this.filtroData, "tipo"...
asked by 05.07.2018 / 18:01
0
answers

"Can not set property 'className' of null" Error function Angular 2+

In my template I have a button that calls the sign-in function: <button type="submit" name="entrar" (click)="fazerLogin()" routerLink="/home" class="login" id="login-button">Entrar</button> I've added a div for if the username o...
asked by 29.06.2018 / 14:58
1
answer

Firebase: Filter child node query on AngularFire2 firebase

I have this structure: { "3" : { "data" : "2017-09-21", "fornecedor" : { "cnpj" : "123234534534", "fantasia" : "Barreirinha" }, "nNF" : 3, "peso" : 3, "precoCompra" : 6, "vendido" : false }, "123"...
asked by 21.06.2018 / 17:27
0
answers

Update (Put) in my project does not write to BD (MongoDB)

I need to do an editing screen and I can not. See how my component is (I deleted the imports to save space) @Component({ selector: 'app-operators', templateUrl: './operators.component.html', styleUrls: ['./operators.component.css'], pr...
asked by 22.07.2018 / 16:26