angular2-resource and ajax interceptor
angular2-resource and ajax interceptor is service helper class. You can extends and enjoy like angular 1 resource feature
The sources for this package are in (https://github.com/rajan-g/angular2-resource.git) repo. Please file issues and pull requests against that repo.
Install from npm
npm install angular2-resource-and-ajax-interceptor
Example file usage main.ts
; ; ; ; ; ;
resource extend by sampe-resetservice.ts
; ; ; ; ;
ajax interceptor configuration interceptor-config.ts(note: if you don't like interceptor no need to use this files)
; ;
finnaly app.component.ts
; ; ; ;
For Test demo
- Download this module
- Run following command
npm install npm start