Questions tagged as 'angular'

1
answer

Difference from $ apply () and $ evalAsync ()

In an application where I have loaded several indicators from a dashboard I am using the $ apply () function to update the data of these indicators but in the console it presents the error "Error: [$ rootScope: inprog]", the function for $ evalA...
asked by 08.11.2018 / 11:43
0
answers

How can postman send requests without having problems with cors?

Currently I use Angular 2+ in some applications and I'm having trouble solving color problems. When the request is made by Postman, everything happens as expected, but when I try through my application, a cors error is thrown on the console info...
asked by 31.10.2018 / 14:09
0
answers

How to pass an array from angular to servlet

Non-Angled Method $ scope.saveListItem = function () { var params = {}; params.idLista = localStorage.lista; params.precoTotalLista = $scope.PrecoTotalLista; params.nomesItens = []; params.qtdItens = []; params.preco...
asked by 11.11.2018 / 02:49
1
answer

Console error: Can not bind to 'formGroup' since it is not a known property of 'form'

I'm using Angular 6 and I'm creating a form: The form: <app-layout> <div class="card"> <div class="card-header"> Novo Post </div> <div class="card-body"> <form [formGroup]="form" (ngSubm...
asked by 09.11.2018 / 14:23
0
answers

Deleting elements from a formgroup spoils my ngfor

My Scenario: My products have variations and each variation can have "N" attributes. I made the addition of the variations with the formgroup array: createFormGroup(){ return this.fb.group({ atributo: "", preco: null, lis...
asked by 09.11.2018 / 12:49
1
answer

How to call Angular method 4 in HTML code generated by jQuery?

I'm using a template that I bought in Angular, but it's not all in Angular has a lot of jQuery. I'm using jQuery's Datatable (since it's already the template's native, it's all css ready and it's already fetching the data and paging), but I n...
asked by 09.11.2018 / 14:18
0
answers

fill municipality's combobox according to the selected state in Angular

Good morning, I have a combobox of municipality that is loaded with the municipalities according to the state selected, I am bringing the data of an API done in C # as follows: $http.post('views/sistema/sistemas/service.aspx/Municipi...
asked by 30.10.2018 / 16:21
0
answers

Import an angled project into another angular project

I wonder if it's possible for me to import an entire angled project into another project, eg let's say I have a financial project and a stock project both ready and working but in separate projects, and now I'd like to create a new one project t...
asked by 07.11.2018 / 20:49
0
answers

Updating the Angle CLI to the latest version?

I started a new angled project, this works fine for me when I use: npm start However, I'm trying to use ng serve So I tried this: npm uninstall --save-dev angular-cli npm install --save-dev @angular/cli@latest However, I'm getting...
asked by 01.11.2018 / 16:41
1
answer

Generating correct json with p-dropdown primeng?

I'm new to Angular and I have the following situation using the API in java: I have the "Launch" class where the NOT category is mandatory (Category class) @Entity @Table(name = "lancamento") public class Lancamento { @Id @Gener...
asked by 02.11.2018 / 04:33