@guillermocorrea/cacheable
v0.0.1
Published
Angular method decorator to cache observable results
Downloads
2
Maintainers
Readme
@guillermocorrea/cacheable
Angular method decorator to cache Observable results.
Example
@Injectable({
providedIn: 'root'
})
export class TodoService {
constructor(private http: HttpClient) {}
@cacheable()
getTodo(id: number) {
return this.http.get(`https://jsonplaceholder.typicode.com/todos/${id}`);
}
}