Questions tagged as 'angularjs-2.0'

1
answer

Angular headers error 2

I have the following code to receive my form data and send it to my service that you create with spring    angle code crearCalidadProducto(calidadproducto: CalidadProducto){ let json = JSON.stringify(calidadproducto); let params =...
asked by 01.11.2017 / 22:34
1
answer

Problems accessing variables with the FileReader

I have declared a variable in my component and would like to access it within a onloadend of a FileRead . I show you my code. export class AdjuntarArchivoComponent implements OnInit { documentosAdjuntos: FicherosAdj[] = [];...
asked by 17.10.2017 / 14:52
0
answers

insert component into another angular component 4

I want to show one component (one header) inside another, the problem, I think, is that I'm using router-outlet , and when in some component view (parent component) I want to put the component header (child component), and then own content of t...
asked by 16.10.2017 / 16:35
1
answer

Touring Angular object 2 paging information

I'm working with Angular 2. First of all I do an API query and retrieve the information in JSON. With this method: getinvfechasensores(fecha1,fecha2){ return this._http.get(this.url+'getinvfechasensores/' +fecha1 + '/' + fecha2)...
asked by 10.10.2017 / 15:42
1
answer

Can you enter my css folders in the assets folder of angular 4? [closed]

Hi everyone, I am implementing angular 4 in a project and my question is the following: how can I insert my css fonts and img files in the assets folder of angular?     
asked by 09.10.2017 / 18:45
0
answers

How to import primeng component in several Angular modules?

Greetings community, I'm trying to import primeng components in two different modules and I get error:    Error: Uncaught (in promise): Error: Template parse errors and in general when I import a component that is in another module that e...
asked by 19.09.2017 / 01:31
1
answer

Angular 4 Change headers

I am implementing an api that I do in laravel, without any problem when testing with Postman, but when making the connection with Angular 4, as I have to send custom headers, they modify the method from POST to OPTIONS, so the endpoints do not w...
asked by 25.09.2017 / 06:52
0
answers

Problem to open a web application in angular 2 locally

Good, I'm new to this and at work a web app is being created, and I want to open it locally so I can make local changes without modifying anything of the original. And when performing the 'ng serve' it tells me to run the 'npm install', and when...
asked by 12.09.2017 / 21:56
0
answers

Get name Host or Mac from Angular client 2

Good morning. I am looking for information on how to obtain the hostname or the mac number of the client that enters the page. All customers are on the same network. some information would be very useful. since thank you very much. g...
asked by 26.09.2017 / 11:59
1
answer

angular 4 + WebApi

Good morning, I'm trying to show the objects obtained in the get request from the browser's console from angular test.service.ts: getTestValues_Get() :Observable<Itest []>{ return this._http.get(this.url) .map(response =&...
asked by 01.09.2017 / 13:55