Questions tagged as 'angular'

1
answer

Searching for google non-angular geolocation

Hello, I have to search for Longitude and Latitude, by the Google API, with Angular .. I am using this code to make the request: constructor(private http: Http, private vwServicePagination: VwServicePagination){} obtendoGeoloca...
asked by 16.04.2018 / 16:04
1
answer

How to apply console.log in angular?

I want to apply console.log in the angular method, but I'm having trouble, I'm doing this; export class CervejaService { cervejasUrl = 'http://localhost:8080/cervejas'; constructor(private http: Http) { } adicionar(cerveja: Cerv...
asked by 22.01.2018 / 18:10
1
answer

How to get the index value of ngFor

Could help me in a doubt, I have a form with an array where FormControl "id" exists. Is there a way to get the value of index to fill this field? <tr *ngFor="let item of invForm.controls.tool.controls; let i= index" [formGroup...
asked by 22.01.2018 / 11:40
1
answer

Save the user - Angular2 / 4

I'm new to the angular. Ask me a question how could I save me logged in user, so that I do not lose my user if the browser is reloaded? Like a PHP session. Thank you for your attention.     
asked by 24.08.2017 / 01:38
1
answer

Problem in consuming JSON with AngularJS

I'm trying to run a test to get the data from a JSON file but I'm not getting it.    app.component.html </div><div ng-app="appCursos" ng-controller="meusCursos"> <ul> <p> {{ cursos.id }}</p> </ul&...
asked by 07.04.2018 / 08:27
0
answers

How to capture the authorization of the headers to get the token using httpclient (angular 6)

My question is as follows, I'm using httpclient, and I need to get the jwt token, but it's coming in header no authorization (as it shows in the image), I'm not able to get this token because it's not coming in payload, and yes in the header. Is...
asked by 28.12.2018 / 19:33
0
answers

Use sanitizer in non-angular img src

I'm getting a sanitizer warning img src, I'm trying to use the angular sanitizer service, but I get:    Got interpolation ({{}}) where expression was expected I tried: <img [src]="sanitizer.bypassSecurityTrustResourceUrl({{m.foto}})"...
asked by 29.12.2018 / 00:00
1
answer

Dropdown Ordering Angular4 [closed]

Hello, I have a state field (UF) that is as a dropdown and would like to sort it (by name). Could you please give me a map? My code looks like this today: estados = [ {label: 'Acre', value: 'AC'}, {label: 'Amazonas', value: 'AM'}, {label: 'A...
asked by 28.12.2018 / 01:18
1
answer

Datatable with pagination server side

I searched a lot in Google but did not have a clear path of how to make a datatable that contains pagination by the server, or seka, that on each page it made an individual request of it. All I saw, it makes the php request with the back end,...
asked by 08.11.2016 / 20:28
2
answers

How to load a page inside a div with angular

Talk about it! I have a big question and I can not solve it. I'm developing an application for my college's TCC in Angular. I have a menu and within that menu there are options to navigate the site, but instead of changing pages, I would like th...
asked by 27.10.2018 / 08:50