Questions tagged as 'angular-6'

1
answer

ngx-bootstrap + angular 6 + datepicker

Hello, I'm using ngx-bootstrap's datepicker for the first time and I'm encountering some difficulties. One of them is that by selecting the desired date, my input is in the exact format I need, as follows: '20 / 12/2018 ', however when I p...
asked by 21.12.2018 / 02:30
1
answer

How can I wrap the object generated by FromBuilder?

I use FormBuilder to generate an object and send it to an API, but the generated object is not quite the format that the API expects. I need to know how to add objects inside objects using FormBuild. I did a "gambiarra" to work, but wanted to kn...
asked by 03.01.2019 / 21:10
1
answer

Type an array of type any [] in angular 6

I need to type an object, so I do not get any [] in the agile 6. Well, on the get, I get this from the API: { "error": false, "itens": [ [ { "operatorId": "819ee9cc-70b6-44dc-b9e8-afff8705142c",...
asked by 06.07.2018 / 15:50
3
answers

how to send the CPF number without the dots and dash (Input Mask)

I'm creating a mask with inputMask , but the CPF is sent like this: 222.222.488-19 . And I want it to have the mask of input but at the time of sending it will be without the dots and dash. Type this 22222248819 . My...
asked by 22.11.2018 / 01:14
1
answer

Form validation with angle 6

I have this form, very simple, with only one field and one button. I gave a required input, and when I write with the empty field and / or null, it does not record (correct), but it already changes to the list screen. That would be correct, if y...
asked by 26.07.2018 / 18:29
1
answer

Calling a one-button route is not working

I need, when I create an Operator, after creating it, it should call another screen, the list of operators. Turns out it's not working. Is the route called operator and how do I put this button? <button type="submit" class="btn btn-primar...
asked by 26.07.2018 / 15:50
2
answers

How to write to the mongodb API

I have this API (Controller) [Produces("application/json")] [Route("api/[controller]")] public class TypesFieldsController : Controller { private IAddTypeFieldService addTypeFieldService; public TypesFieldsController(IAddTypeF...
asked by 16.07.2018 / 15:43
1
answer

Updating of variants OnInit - Angular 2

I have the variable: compromissoInicio = ‘’; No onInit , I have: this.enviaForm(this.funcoes.homeAtualiza); That is, if homeAtualiza is true , the system updates the information as follows: ... submita form ... thi...
asked by 05.12.2018 / 15:27
1
answer

Angular Command 6 CLI to create a component in a specific folder

Is there any way to create a component in the Angular 6 CLI specifying which folder it should be in? I searched the net and found ng g c nome-componente --module=app but this is just to specify that it will stay in app I tried to t...
asked by 18.10.2018 / 00:50
1
answer

Reuse component in another component and get the data of the child in Angular

I made a ZIP search component this way: I created the component, its HTML is: <fieldset [disabled]="isLoading"> <div class="row col-md-6"> <div class="row"> <div class="col-md-4">...
asked by 25.11.2018 / 18:14