Questions tagged as 'angular'

1
answer

Error compiling project in Angular 5

I'm trying to get a JSON through POST with angular, but I get the following error. Error: Unexpected value 'AppComponent' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation. I really do not know what...
asked by 16.04.2018 / 01:51
1
answer

Fill an option tag with a for

I want to make a select that has a option tag which is filled with values from 1 to 8 <select class="num_per" [(ngModel)]="personas" [ngModelOptions]="{standalone: true}" name="personas"> <option class="placeholder" [...
asked by 23.08.2018 / 18:12
1
answer

how to send data from a component to a server in angula 6

Hello friends, I have a doubt, it is possible to send data to service from one component and then from the service to send them to another component. in this code I have errors but in case what I would like is to pass the data array that is in t...
asked by 22.10.2018 / 00:11
1
answer

Problem installing angular-cesium in Angular 6

I am trying to install Angular-cesium in a project generated with Ngx-rocket and I get this error: Try to generate the project with ng-cli and the same error.     
asked by 05.08.2018 / 08:30
2
answers

Problem with ngIf and subscribe in Angular

I'm having problems updating the value of a variable within a subscribe to decide whether or not to show a div in the template. The idea is that if the credentials of a user are not correct and the HTTP response of the server is not 200 OK a div...
asked by 24.07.2018 / 18:30
2
answers

How do I get the value of a child element from a div

Hi I would like to know how to extract the value of a <input id="tipo"/> child from a <div class="box-header"> these elements of DOM are repeated but not their values, the values are used to set a local storage,...
asked by 23.07.2018 / 21:42
1
answer

Show JSON with API from Angular 4

I try to show my Object from a GET service but I can only see [Object] [object]. Service: return this.http.get('http://localhost:3000/words').map((res: Response) => res.json()); Controller: export class WordsComponent implements OnI...
asked by 23.07.2018 / 15:44
1
answer

Default option in select with Angular 5

I have the following problem, I hope you can help me: I have a form in my HTML template: <form #formulario="ngForm" autocomplete="off"> <div> <label for="periodo">Periodo</label> &...
asked by 27.07.2018 / 01:42
1
answer

Switch from one input to another automatically

Working with ionic I have three inputs with 4 digits each What I try to do is that when someone puts the first 4 numbers in the first input automatically pass to the next input without having to use tabindex, if someone could guide me a...
asked by 19.07.2018 / 15:04
1
answer

Routing in ANGULAR 5

I hope you can help me with the following: I have the following code: this._router.navigate(['./admin']); I would like to know if there is the possibility of navigating to this route through the behavior of the href attribute, that is,...
asked by 01.08.2018 / 07:26