Questions tagged as 'angular'

1
answer

How to consume an API "without permission" [duplicate]

In the searches I did, I discovered that it is not possible to consume an API if it does not release its host on the server (backend), but I hope it is mistaken, this is the reason for this question, is there any method to consume an API "with...
asked by 27.10.2018 / 06:13
1
answer

TypeScript, with or without semicolon? [duplicate]

I'm recently entering the world of angles, and I came across some tutorials where even imports and also codes are unfinished, followed by ; Does it really need to be used? And what's the difference between using and not using?   ...
asked by 13.07.2018 / 22:11
1
answer

Problem with Subscribe when Return is a single Object

I'm developing an angle application 6 and I'm having a problem when I do Subscribe on the method that returns a single object in the HTTP request. For example, making this request for my component: ngOnInit() { const empresaId = this....
asked by 20.08.2018 / 22:24
2
answers

ngFor does not give the expected result

My ngFor is not showing all the data that arrives, but in the console it shows all the results. I get some data from the API and it has a sales data and a meta data, they come in an array and I use the forEach in them, and if it hits the targ...
asked by 16.08.2018 / 18:12
2
answers

Load record by ID in the Angular

This is a brief explanation below. By clicking on the record in the browser screen I can not load the records according to ID. This is a detailed application below; View the gif file Youmaynoticethattherearetworecordsbeingloaded...
asked by 02.07.2018 / 12:26
2
answers

ngFor inside ngFor does not work [closed]

I'm trying to access data with ngfor but I can not. How do I get access to each data with ngfor? json: [ { "id": 1, "name": "Programas", "base_Url": "http://uol.com.br", "order": 0, "programs": [ { "i...
asked by 17.11.2018 / 04:45
2
answers

How to pass property-bind to the router-outlet in angular 2

Hello everyone. I am learning angular beginner 2 and I have this title doubt. My router-outlet: <router-outlet [busca]="termo"></router-outlet> with this property-bind and returns me this error in the console:    Unhandled...
asked by 09.08.2017 / 02:53
1
answer

How to search a collection of JSON a certain register with Angle 2x?

I have a JSON in this format: [ { "agencia": "2342342", "digito_agencia": "2342", "numero_conta": "234234", "digito_conta": "23423", "_id": "5bff1a63a617f53414766c27", "createdAt": "2018-11-2...
asked by 28.11.2018 / 23:59
1
answer

Sum returns NAN even by converting the number to angular

I have a repeat structure that should add up some values: The variable qtdeEstoque has been defined as number and the variable variacaoForm.value.variacoes.estoque_variacao is a number, but when I try to add this way inst...
asked by 25.09.2018 / 13:42
3
answers

Adding data from the array

I have an array that the data comes from the user's filled form and I make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1 * number2...
asked by 19.10.2018 / 15:54