Questions tagged as 'angular-6'

1
answer

Error in mat-select when I try to choose an item

Error:    ngModel can not be used to register form controls with a parent   formGroup directive. Try using         formGroup's partner directive "formControlName" instead. Example: My HTML <div class="container"> <form [for...
asked by 18.07.2018 / 20:03
1
answer

Starta button on the side and not under the mat-table

I have this html <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <div> <table mat-table [dataSource] = "dataSource" class="mat-elevation-z8"> <ng-container matC...
asked by 11.07.2018 / 20:40
1
answer

Export Angular input value

Good night, guys. In Angular 6, I have the following code: import { Component, OnInit } from '@angular/core' import { FormGroup, FormBuilder } from '@angular/forms'; @Component({ selector: 'app-form', templateUrl: './form.component.html',...
asked by 07.06.2018 / 01:32
1
answer

Error trying to load a mat-table with angle 6

Starting with Angular 6. When trying to create a table, based on an example I got, I started to have the following problem. I've added these lines to my main module : import { MatInputModule, MatPaginatorModule, MatProgressSpinnerModule,...
asked by 03.07.2018 / 00:53
1
answer

"WARNING in Duplicated path in loadChildren detected during rebuild." Duplicate paths

What can be wrong to cause in warn ? WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. You should perform a full build to validate that y...
asked by 21.06.2018 / 15:05
1
answer

Angular 7 error: ERROR TypeError: jit_nodeValue_5 (...) is not a function

I have a simple page with 3 modals, which are opened when clicking buttons to request yes or no to perform actions. In one of them I only have this error, by clicking on the yes button of the confirmation modal, which calls a function. Modals ha...
asked by 04.01.2019 / 16:15
1
answer

Angular 7 autocomplete with http

I have a field in my project that needs to use autocomplete. But it is not working. Could someone help me? Component filteredCostCenter: Observable<CentroCusto[]>; ngOnInit() { this.filteredCostCenter = this.form.controls.centroCu...
asked by 02.01.2019 / 14:47
1
answer

ID repeated on objects in my array

I'm trying to assign an ID to each object in my array, but when I have two or more like objects, they end up getting the same ID. I already tried to indexOf() and it also did not work. this.selection.selected.forEach(servico => {...
asked by 17.12.2018 / 14:22
0
answers

Separate methods from an Angular component 6

Hello everyone, I have a component with 1266 lines, due to its large volume of methods, I need to separate these methods to facilitate future maintenance, only problem is that I have local variables, and these methods mostly consume these variab...
asked by 14.12.2018 / 11:17
0
answers

How to inspect an application in Angular?

I have just been logged into a project, they use Spring Boot with Angular. The module of the project that I was responsible for is the personal movement module as you can see below; Theapplicationworksasfollows!Thefirststepistoclicktheeditbu...
asked by 14.12.2018 / 13:55