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&...
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...
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...
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...
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...
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);
},...
I have the following mat-checkbox:
<mat-checkbox formControlName="formControlIdentificador" color="primary" class="correcaoClasseCheck" labelPosition="before"></mat-checkbox>
<input formControlName="formControlNomeIdentificador...
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...
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});