Paldom / angular2-rest

Angular2 HTTP client to consume RESTful services. Built with TypeScript.
MIT License
248 stars 72 forks source link

remove @BaseUrl and @DefaultHeaders decorators #18

Open mjerez-radical opened 8 years ago

mjerez-radical commented 8 years ago

This should be configurable at execution time

auvipy commented 8 years ago

any proposed solutions?

M-jerez commented 8 years ago

Yes, what i mean here is that using variables instead decorators might be a better approach, much more flexible and code would not need to recompile if URL or any header needs to be changed.

0xE282B0 commented 8 years ago

@mjerez-radical what do you think about passing a function as @BaseUrl parameter like in PR #22 ?