hi,
I have a function that is passing data back to the class file. I actually
want to pass this data to the service file which is another folder back
townClicked($event) {
console.log('clicked', $event);
}
and here is my service class which I would like to pass the data into but
when I use... see ????:
export class PubsService {
private _pubsintownurl =
'http://www.mypubspace.com/pubsmobile/gettownpubs.php?rsTown=????';
private _townurl = 'http://www.mypubspace.com/pubsmobile/towns.php';
constructor(private http: HttpClient) { }
getPubs(): Observable<object> {
return this.http.get(this._pubsintownurl);
}
handleError(error: Response) {
return Observable.throw(error.statusText);
}
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.