Most voted "angular2-http" questions
8 questions
Sort by count of
-
3
votes2
answers981
viewsAngular2 ngFor help with loop
I have a file nvi.json that is this way: [ { "abbrev": "gn", "book": "Gênesis", "chapters": [ { "1": { "1": "...", "2": "..." } }, { "2": { "1": "...", "2": "..." } }, { "3": { "1": "...", "2":…
-
2
votes1
answer236
viewsIntercept all HTTP requests from angular2
I’m looking for a way to intercept all HTTP requests from the angle and add a few headers. In versions prior to angular2 RC5 (before the NgModule) was that way, for example: class MyOptions extends…
-
2
votes0
answers51
viewsAngular 2 bug in the url after auto-Compile
Every time my Angular application auto compiles, the url is never restarted but my application goes back to the homepage the same way. So if I’m in the following URL:…
-
2
votes2
answers4609
viewsHow to pass a GET parameter in a URL in Angular 4+ ? Using the route system
I need to insert a parameter GET after entering the page with the URL. For example: I clicked here and went to page y. http://example/paginay**?= parametroGet** The get parameter will be an ID,…
-
1
votes0
answers127
viewsAuthentication with Ioni2, Angular 2
I have the class ts Authprovider import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; @Injectable() export class…
-
0
votes2
answers132
viewsCast Typescript ( ERROR Typeerror )
The problem is this, through a service(ModeloService), receive an array of Modelo, where Modelo is a class, it turns out I’m not getting access to the methods of this class, because the cast in the…
-
0
votes1
answer147
viewsDynamic mounted Angular 5 track
I have a dynamic menu mount at the angle. The setup is done as follows: <ul class="pcoded-item pcoded-left-item" item-border="none" item-border-style="solid" subitem-border="solid" *ngFor="let…
-
0
votes1
answer26
viewsReturning Array[] with Obsevable
I’m developing an Angular 2 application and in my service I’m returning one Observable<Pessoa[]> but when returning http with my get it runs the following error. Type…