Questions tagged as 'angular'

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
1
answer

Click function with a variable of a model

Ie personally, I have model getting the value of a web api perfectly, but the problem is that I have a function that I need to get the value of model and put in the click function as parameter and it gives the following error:...
asked by 15.06.2018 / 15:45
1
answer

Send angular form

I'm sending a form via angular, but the data is not getting updated in the backend? <form [formGroup]="categoriaForm" (ngSubmit)="salvarCategoria()"> <tr *ngFor="let data of config; let i = index;" class="d-flex"> <td clas...
asked by 04.09.2018 / 00:38
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
2
answers

Anchor link to direct to a div does not work

I'm using Angular 2+, I'm trying to add an anchor that when clicked will take me to the target div, but when I click on the anchor, my site is reloaded and adds the #parallaxdiv link after the localhost ... in instead of moving to the link. I...
asked by 17.07.2018 / 20:36
1
answer

Error: That is not equal to the supplied origin

I'm trying to fetch records that are in an API on the heroku server with the following URL https://mdw-arm-wladimir.herokuapp.com/noticias But when I receive this url in my Angular project it generates this error; This is my...
asked by 09.03.2018 / 16:18
1
answer

FormGroup Required condition

I have a component address which has a form , it will be requirido in some places and others not so I intend to use a @input required = false; variable to do this. I start the formGroup in onInit like this: b...
asked by 08.03.2018 / 19:19
2
answers

error: Uncaught (in promise): Error: Value must be an array in multiple-selection mode

Doing a compareWith, for the purpose of when I edit, the dropdowns may already be filled with the assigned values. By doing this, I get this error:    Uncaught (in promise): Error: Value must be an array in   multiple-selection mode. I ho...
asked by 01.08.2018 / 21:27
1
answer

Unreachable code detected non-angular

Look at this snippet of code; this.notificationService.notify('cadastro feito com sucesso') I created a project in Angular, it is an ecommerce system, every time I select a product it can notify the message on screen perfectly using that...
asked by 01.08.2018 / 14:25
1
answer

How to work with Array in Angular with screen printing?

I still know little Angular and I know only the basics, look at the code snippet: listarTodas(): Promise<any> { return this.http.get(this.cidadesUrl) .toPromise() .then(response => console.log(response.json())); }...
asked by 05.02.2018 / 09:57