Questions tagged as 'angular'

1
answer

Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response [duplicate]

How can I eliminate this error? XMLHttpRequest cannot load http://www.ramosdainformatica.com.br/food/apinhac.php. Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response. app_controller.js:20 []...
asked by 03.05.2016 / 03:08
0
answers

Sharing on Instagram [closed]

I was giving a beautiful new instagram API link and realized that it does not contain some features that I see there. Can anyone tell me how these scheduling sites work? I would like to understand how the publications are done.     
asked by 02.01.2019 / 02:23
1
answer

Recover Header from an Http Response with angular

I need to retrieve the Token that comes in the authorization and save it in the localstorage, but I'm not getting it. My login method within my service is: public login(email: string, password: string): Observable<User> {...
asked by 09.12.2018 / 16:19
1
answer

Iterate values of two requests in * ngFor

I'm making two requests in the database, one brings the grouped requests just for preview on the front, the other brings all the values, the latter needs to show the total of each request along with the first request view. listOrders() {...
asked by 03.12.2018 / 15:38
0
answers

My empty default route is falling on last lazy loading configured

I have the following default route: const dashboardRoutes: Routes = [ { path: '', loadChildren: 'src/app/components/dashboard/bemvindo/bemvindo.module#BemVindoModule', canActivate: [AuthGuard] }, {path: 'dash', component: DashboardComp...
asked by 03.12.2018 / 16:59
0
answers

Why would it be nice to add or remove HTML elements from the DOM?

I'm starting my studies in Angular 7 and in a lesson on Structural Directives, I learned that I can add or remove elements HTML of DOM . I understand that there are 3 main , ngIf , ngSwitch and ngFor . The...
asked by 24.11.2018 / 18:32
2
answers

Error with property checked and value in Angular

I'm trying to use a code to get the value of the selected radio button and I'm encountering the following errors:    The 'checked' property does not exist in type 'HTMLElement'.    The 'value' property does not exist in the NodeListOf...
asked by 09.11.2018 / 02:57
0
answers

Angular continues my function before the dialog response

I have a function that calls a dialog if a product's SKU is changed, but the function is being continued before the dialog output. Is there any way to wait for the result and then continue the function? salvaAlteracoes(){ for(let i=0;i&...
asked by 06.12.2018 / 18:58
1
answer

How to get the Header of a response with Angular 2+?

How do I get a Header for a response with Angular 2+? In my case, I'm using version 6. I would like to get this authorization data to be stored in the Browser's LocalSession. I am using the following method to perform the request:...
asked by 22.10.2018 / 15:52
0
answers

AngularJS and Angular in the same project

Currently I have a project that is in AngularJS that we decided to upgrade to Angular 6. However, doing this one-time upgrade is not feasible because of the size of the project. Is there a way to keep AngularJS and Angular in the same applica...
asked by 24.10.2018 / 14:30