Posts

Showing posts from January 29, 2019

Use http request that calls pixabay api to display images in Angular 6

Image
-1 I want to show a list of images that i get from an api called pixabay, using http request works fine in angular 4, what is the proper way using angular 6 : pagePhoto:any; onSearch(dataForm){ this.http.get("https://pixabay.com/api/?key=10727287-66f9e40c95980a4fc92c26b12&q="+dataForm.motCle+"&per_page=5&page=1") .map(resp=>resp.json()) .subscribe(data=>{ this.pagePhoto=data; }); } I've imported : import {Http} from "@angular/http"; And passed private http:Http in the constructor In my component i show img using ngFor : <div *ngFor="let p of pagePhoto?.hits" class="col-md-3 "> <div class="panel panel-primary cadre"> <div class="p...

Trent Green

Image
Trent Green Green with the Kansas City Chiefs in 2006. No. 7, 10, 12 Position: Quarterback Personal information Born: ( 1970-07-09 ) July 9, 1970 (age 48) Cedar Rapids, Iowa Height: 6 ft 3 in (1.91 m) Weight: 208 lb (94 kg) Career information High school: Kirkwood (MO) St. John Vianney College: Indiana NFL Draft: 1993 / Round: 8 / Pick: 222 Career history San Diego Chargers (1993–1994) BC Lions (1994) Washington Redskins (1995–1998) St. Louis Rams (1999–2000) Kansas City Chiefs (2001–2006) Miami Dolphins (2007) St. Louis Rams (2008) Career highlights and awards Super Bowl champion (XXXIV) 2× Pro Bowl (2003, 2005) Tied NFL record 99-yard pass Career NFL statistics Pass attempts: 3,740 Pass completions: 2,266 Percentage: 60.6 TD–INT: 162–114 Passing yards: 28,475 Passer rating: 86.0 Player stats at NFL.com Trent Jason Green (born July 9, 1970) is a former American football...