There are a few thirdparty libs that do this and tie in with RXjs.
Take a look at https://github.com/troyanskiy/ng2-resource-rest
There are a few thirdparty libs that do this and tie in with RXjs.
Take a look at https://github.com/troyanskiy/ng2-resource-rest