Skip to content

Instantly share code, notes, and snippets.

@LayZeeDK
Created October 19, 2018 21:51
Show Gist options
  • Save LayZeeDK/281469226a6c636295b3c26b4a3d927b to your computer and use it in GitHub Desktop.
Save LayZeeDK/281469226a6c636295b3c26b4a3d927b to your computer and use it in GitHub Desktop.
Angular wrapper around search BLoC
import { Injectable, OnDestroy } from '@angular/core';
import { SearchBloc, SearchRepository } from '../../business-logic/search';
@Injectable()
export class AppSearchBloc extends SearchBloc implements OnDestroy {
constructor(repository: SearchRepository) {
super(repository);
}
ngOnDestroy() {
this.dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment