UNPKG
ohayolibs
Version:
latest (1.0.1)
1.0.1
1.0.0
Ohayo is a set of essential modules for ohayojp.
ohayolibs
/
packages
/
form
/
src
/
terminator.service.ts
14 lines
(10 loc)
•
214 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
Subject
}
from
'rxjs'
;
export
class
TerminatorService
{
onDestroy
:
Subject
<
boolean
>;
constructor
(
) {
this
.
onDestroy
=
new
Subject
(); }
destroy
():
void
{
this
.
onDestroy
.
next
(
true
); } }