Questions tagged as 'angular4'

2
answers

Fill select in Angular with API query results

I'm making an application with Angular 4 and using Materialize CSS. My goal is: when a certain component is loaded, an HTTP query is made that extracts some data, which will dynamically fill a select content in the view. Next, I show the service...
asked by 16.12.2017 / 19:12
0
answers

Communication between components Angular

I am new to Angular, I am trying to pass a value from one screen to another. The thing goes like this: On the first screen I select a "select" value (it's the id of a client), then I click on a button and it redirects me to another page where I...
asked by 30.01.2018 / 07:41
2
answers

problem with the ionic service code [closed]

import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Headers } from '@angular/http'; import 'rxjs/add/operator/map'; let apiUrl = "http://localhost/PHP-Slim-Restful/api/"; @Inject...
asked by 18.01.2018 / 13:51
0
answers

How to get the Document from a field in cloud FireStore

I hope you can help me, I've been looking for a long time and I have not achieved anything. The Fields of "x" Document I add it in a table in HTML, and I have added two buttons, to edit and to eliminate, what I want is to obtain the Document fro...
asked by 16.01.2018 / 20:16
2
answers

error when running ng serve --open

Because I get this error when I run ng serve --open :    C: \ wamp64 \ www \ my-app & nt serve --open You seem to not be depending on   "@ angular / core". This is an error. I do not understand maybe I did something wrong when insta...
asked by 09.01.2018 / 19:35
0
answers

Type '{} []' is not assignable to type 'AngularFireListany []'

I am new with Angular , it is my first course that I take about it and I am trying to complement it with Firebase , but when I try to obtain the objects that my node contains to an AngularFireList I get this error, my code is as follows:...
asked by 04.01.2018 / 22:01
0
answers

Access to Angular service data 5

Why does it only allow me to access the data in a specific way? I have a service: getCvs() : Observable<Array<Cv>>{ return this._http.get<Array<Cv>>(this.url + 'getCvs').pipe( tap(cvs => this.log('Fetc...
asked by 01.02.2018 / 12:22
0
answers

angular cli update CRASH

I have updated from version 1.3 of angular cli to 1.6.X and when doing npm install I get a constant error of webpack-subresource-integrity with webpack, updated webpack to version 3.X (I installed it globally and locally ) and the same error kee...
asked by 14.12.2017 / 16:00
2
answers

Something similar to $ rootScope

I have been looking for a way to have global variables for the whole application, something similar to the rootScope of angular 1 I searched the angular api 4 and I have not found an answer if someone went through this problem I appreciate your...
asked by 16.11.2017 / 23:01
1
answer

Help with Angular rest service 4 Django Rest Framework

Good afternoon, I'm making an application using Django and Angular 4 however when I try to consume the service provided by django I get the following error.    Response to preflight request does not pass access control c...
asked by 26.10.2017 / 19:57