Created
October 19, 2018 21:51
-
-
Save LayZeeDK/281469226a6c636295b3c26b4a3d927b to your computer and use it in GitHub Desktop.
Angular wrapper around search BLoC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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