Commit 2c825692 authored by prumde's avatar prumde

Updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174401 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f47c748d
...@@ -56,22 +56,16 @@ export class ECMSearchComponent implements OnInit { ...@@ -56,22 +56,16 @@ export class ECMSearchComponent implements OnInit {
}); });
} }
ngAfterViewChecked() { ngAfterViewInit() {
if(this.search_key) console.log( 'ECMSearchComponent ngAfterViewInit .....');
this.searchBar.nativeElement.value=this.search_key; if(this.search_key && this.searchBar)
this.searchBar.nativeElement.value=this.search_key;
this.storeUserLocation = this.store.select('location'); this.storeUserLocation = this.store.select('location');
this.storeUserLocation.subscribe( userLocation => { this.storeUserLocation.subscribe( userLocation => {
//console.log( 'ngAfterViewChecked >' + userLocation );
this.userLocation = userLocation; this.userLocation = userLocation;
}); });
} }
ngAfterViewInit() {
if(this.search_key && this.searchBar)
this.searchBar.nativeElement.value=this.search_key;
}
loacteMe() { loacteMe() {
this.locationService.getGeoLocation(); this.locationService.getGeoLocation();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment