Questions tagged as 'angular'

0
answers

HTTP request falling into catchError

I'm trying to do http request inside the httpInterceptor, however it always falls in the catcherror, it is printed on the console the "fell into err". intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any&...
asked by 05.12.2018 / 19:23
0
answers

Error testing GET method with Jasmine / Angular

I'm trying to compare the type of method when there is a call with the api url. import { async, ComponentFixture, TestBed, getTestBed } from '@angular/core/testing'; import { ServiceOrderTypesComponent } from './service-order-types.com...
asked by 04.10.2018 / 17:18
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

items hidden by filters - error console

I'm creating an electron application with angular2, where I make requests to an api. When I disconnect the machine from the internet, (because I want the application to work differently without internet) on the console, it starts several errors...
asked by 03.10.2018 / 15:48
1
answer

Spring boot + Angular 6 + Heroku

I created a web application where the front uses angle 6 and the back uses spring boot. My goal at the moment is to put the application online. On the local server when I run the spring boot the angle is normally called, when I put the app...
asked by 26.09.2018 / 06:25
1
answer

Check non-angular http status

I have the following code, I need to check the status that the server returns to WebApp, I have the following code: this.http.post (this.url,json) .subscribe ( res => { console.log(res); },...
asked by 26.12.2018 / 18:46
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

ANGULAR ROUTE 2+ [closed]

I've separated my route modules: 1 - product.routing.module.ts Where do I have the route of / product and its daughters / product / new / product / edit 2 - app.routing.module.ts Where I have the root routes of my application / orders / customer...
asked by 15.11.2018 / 20:52
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
1
answer

Error making a POST request Angular (SyntaxError: Unexpected token in JSON at position 0 at JSON.parse)

Angular: public urlConvenio: string = "http://localhost/teste/sistema/backend/controller/convenio/listar.php"; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) }; //REQUISIÇÃO public enviaDado...
asked by 08.09.2018 / 00:49