Hi,
Is it possible to pass data from Page
to Provider
.?
If yes, how we can do it.
My HTML is:
<ion-item> <ion-label floating>Search anything...</ion-label> <ion-input type="text" [(ngModel)]="search"></ion-input> </ion-item>
and my Provider
is
constructor(public http: Http) { this.http.get('http://xyz.com/api/abc.php/?search=**SearchFromHtmlPage**').map(res => res.json()).subscribe( data=>{ this.posts = data.records; }); }
I want to pass value of search
of html page to provider in the link
Thanks.