Hi Swaroop,
You can't subscribe to a subscription!
getDNS(): Observable<Dns[]> {
return this.helperUtils
.getResource('databases')
.subscribe(
res => this.data = res,
// make sure you get data here.
// console.log('Data from Service API layer',
this.data),
error => console.log('Error from backend API', +error),
() => console.log('Done')
);
}
You are not returning an observable there, but a subscription,
Regards
Sander
--
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.