Questions tagged as 'angular'

1
answer

access port problem on node.js

I'm trying to learn about angular2, and I'm encountering this problem. when I type: "live-server" I get this error below: live-server Error: listen EACCES 0.0.0.0:8080 I try to enter the command to change the port: node-inspector --web-port...
asked by 25.06.2016 / 14:46
0
answers

Enable CORS in the request header

Someone knows if you can enable CORS in the ajax request header without having to do anything on the API server, similar to what POSTMAN does. With POSTMAN you test the API and it works fine, when it goes to the CORS error front application, the...
asked by 08.04.2016 / 15:33
0
answers

Angular2 Send and receive information

Good people I'm learning to use Angular 2 but I have a question. I have been searching the internet and they told me that it would be good to create a NodeJs server to receive and send data to the server mysql causing socket...
asked by 22.02.2016 / 00:01
1
answer

Angular component communication 2

I have the following code in a component: import {Component, ElementRef, FORM_DIRECTIVES} from 'angular2/angular2'; @Component({ selector: 'datepicker', templateUrl: './frontend/components/datepicker/datepicker.html', styleUrls: [...
asked by 25.10.2015 / 22:37
1
answer

Handle .js data with angular-cli

Hello! I am now starting to mess with angular and I have a server.js file that makes a call in the database and back up the data. I need to create an interface to display this data. My question is: how can I capture the data from the .js file an...
asked by 08.06.2018 / 21:24
1
answer

Function to open the full screen (Fullscreen) No angle 2 [duplicate]

I need to have my screen open full ... When I give a ng Serve for the application when running it comes with a fullscreen. Can anyone give me a hint how to do this?     
asked by 22.05.2018 / 19:56
3
answers

Consuming an API with Angular

I'm trying to consume an API with Angular 5 but it returns me this error: " Error trying to diff '[object Object]'. Only arrays and iterables are allowed at DefaultIterableDiffer.diff". API Response: { "alunos": [ {...
asked by 27.01.2018 / 04:26
1
answer

How do I get the text of a select with formBuilder? - Angular 6

I would like to get the value of the text and not the value of the select. <div class="form-group col-md-3"> <label for="ProductName">Product Name</label> <select id="ProductName" class="form-control"...
asked by 01.10.2018 / 18:32
1
answer

Http request with angle 6

I'm trying to consume a REST service that has a basic authentication with angle 6 however I'm not able to follow the code I'm using without success: public iniciarProcesso(dadosProcesso: string): Observable<any> { const headers = new...
asked by 16.08.2018 / 19:19
1
answer

How to use multi-component items in only one angle4 [closed]

I have a template that forms a registration form, it is separated into three components "User, Note, Address" the three are being rendered, but I can not access their content when submitting the form. I need the form fields to be all submitted b...
asked by 22.01.2018 / 13:02