Hi Raghu,

You mean something like this?
@Inject({
  provideIn: 'root',
})
class DemoService {
  public params = {
    endpoint: 'customers',
    page: '0',
    pageSize: 10,
  };

  public getUrl() {
    return `http://someUrl.com/${this.params.endpoint}?p=${this.params.page}
&s=${this.params.pageSize}`;
  }
}

If not, can you be a bit more specific?

-- 
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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/5b323f52-0815-4b66-ae6b-0099e9ab2d01%40googlegroups.com.

Reply via email to