Questions tagged as 'angular'

1
answer

How do I extract the values of an object?

I'm trying to make a simple login using information taken from a database in the form of json . I took that information using http.get and save it in a variable called this.info . So what I want to do is the following:...
asked by 08.04.2018 / 03:35
2
answers

How to pass two parameters per url in angle 5?

I'm trying to pass two parameters by url in angle 5 but it does not leave me, I'm doing it like that let administrador = this.usuario.admin let username = this.usuario.username this._http.get('http://localhost/api/public/archivo/admin/${a...
asked by 15.03.2018 / 19:51
2
answers

How to return an observable in Angular 2

I have the following problem, I have several controls that subscribe to an http service that returns the data of a project according to the project code, calls of this type: this.proyectosService.getByCodigo('xxx').subscribe(response => {...
asked by 02.08.2017 / 23:35
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
2
answers

Adding values within NGFOR

I would like some help. I am generating a table within a ngFor , but I need to show in the footer of the same the sum of a certain field: <div *ngFor="let pista of prize.pistas"> <div> <h2>{{ pist...
asked by 31.10.2018 / 23:48
1
answer

Can a request be made in an ng-click event?

Can a request of the post type be made in a click event in angular? <div class="box-header este" data-widget="collapse" ng-click=fxRequest() > function consulta_grupos($http, ref, vg, tipo, $scope) { var oficina = localStorage....
asked by 24.07.2018 / 20:12
1
answer

Update to Angular 6

Update my application (previously in Angular 2) to Angular 6 and it works correctly, but when I run it locally I see this (Look in the photo) before the 'Compiled siccessfully' that did not appear before. Do you know why it appears?     
asked by 30.07.2018 / 17:39
2
answers

Context error problem with Angular2c

My code is simple a button that shows a list but I do not understand the error that throws me just says ERROR Error: "StaticInjectorError(AppModule)[NgIf -> TemplateRef]: StaticInjectorError(Platform: core)[NgIf -> TemplateRef]:...
asked by 14.07.2018 / 00:35
1
answer

Error in dataTables in Server side mode in Angular

Following this guide . categoria.component.html <table datatable [dtOptions]="dtOptions" class="row-border hover"> <thead> <tr> <th>ID</th> <th>First name</th>...
asked by 18.09.2018 / 17:27
1
answer

Copy CANVAS in image format

I have a design in CANVAS designed with the library of FabricJS , so I need to copy the canvas and return the image but keeping the CANVAS and the Image in the same section of the page. How could I achieve what I want? HTML &l...
asked by 04.07.2018 / 22:26