Questions tagged as 'angular5'

2
answers

How do I solve the CORS problem in JavaEE and Angular

I have a CORS problem that I have no idea where it comes from, I am creating a REST service in JavaEE (Glassfish) and I have Front an Angular app consuming the aforementioned service, I am testing the token authentication with the JJWT...
asked by 29.05.2018 / 23:58
1
answer

Error importing "Injectable" from Angular

File color.service.ts : import { Injectable } from '@angular/core'; import { HttpClient, HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; import { GLOBAL } from '../services/global'; @Injectable()...
asked by 04.10.2018 / 18:22
1
answer

Structure of input data in a content-type: Angular form-data

They are asking me to send some data through the post method. I leave the code first: addImage(image, params): Observable<any> { const httpOptions = { headers: new HttpHeaders({ 'Authorization': this.token, 'Content-Type': 'm...
asked by 23.11.2018 / 15:00
1
answer

Save index to reuse

Hello, my problem is that I need to print a sublist that goes in a tr apart below the tr where I loop (in the ng-container), but once out of that tr (where I do the loop) the i no longer recognizes me. Any ideas?. Tha...
asked by 08.11.2018 / 09:44
1
answer

Load data when you have the variable loaded | Angular 7

I am consuming an API service in Node.JS and MongoDB this is the query. this._productService.getProductById(productId).subscribe( response => { this.product = response['product']; }, error => { console.log('Error'); } );...
asked by 03.01.2019 / 11:10
1
answer

How can I setvalue a select options in Angular 7?

This is my html: <div class="col-lg-4 col-md-4 col-sm-12 mt-4"> <div class="form-group"> <select class="form-control" id="operator-groups" formControlName="operators">...
asked by 26.11.2018 / 15:36
1
answer

Model Relations in Angular 5

Any ideas on how to work my backend relationships in Angularn5 (frontend)? I have DjangoRest as a backend and I am using Angular5 as a frontend, and I get the data through http in json format, but I have the problem when dealing with backend...
asked by 24.10.2018 / 17:28
1
answer

How to create a custom directive - Angular 6

I created a custom directive in angular , and I want to share a value between my directive and my typescript file, this is an example of my 2 files: <!-- Mi html --> <div> <input type="radio" name="colors" (click)="color='...
asked by 01.08.2018 / 18:27
2
answers

which is what I download at https://github.com/angular/angular-cli

I want to start working with angular js, I have installed Node.js and when I run the command npm install -g @ angular / cli the execution gives me error which is the cause of this problem, embusqueda of a one solution I found that I can download...
asked by 06.06.2018 / 22:21
1
answer

How to access an element of an object in angular 6

I find myself trying to go through the following heros: any =[ { id: 200, name: "Iron man" , poderes: [ { name: 'fuerza' , nivel: 200, description: [ {...
asked by 14.05.2018 / 10:14