angular2-rest
angular2-rest copied to clipboard
Set Base URL as string or as function.
As mentioned in #18 it would be handy to have a configurable BackendURL at execution time.
My preferred approach is to pass the @BaseUrl annotation a function instead of a string.
example:
@BaseUrl(
_ => sessionStorage.getItem("url") || "http://localhost:8080"
)
The important commit is https://github.com/Paldom/angular2-rest/pull/22/commits/2da6d04dd0803e269e4c64c6a1f6fae79a7d70e1. Feel free to cherry-pick it.
All the other changes have been committed to satisfy Travis CI.