File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
angular/src/shared/directives Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import {
5
5
Injectable ,
6
6
HostListener ,
7
7
Input ,
8
- SimpleChanges
8
+ SimpleChanges ,
9
+ OnChanges
9
10
} from '@angular/core' ;
10
11
11
12
@Directive ( {
12
13
selector : '[block]'
13
14
} )
14
15
@Injectable ( )
15
- export class BlockDirective implements AfterViewInit {
16
+ export class BlockDirective implements AfterViewInit , OnChanges {
16
17
@Input ( 'block' ) loading : boolean ;
17
18
private $element : JQuery ;
18
19
Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import {
5
5
Injectable ,
6
6
HostListener ,
7
7
Input ,
8
- SimpleChanges
8
+ SimpleChanges ,
9
+ OnChanges
9
10
} from '@angular/core' ;
10
11
11
12
@Directive ( {
12
13
selector : '[busy]'
13
14
} )
14
15
@Injectable ( )
15
- export class BusyDirective implements AfterViewInit {
16
+ export class BusyDirective implements AfterViewInit , OnChanges {
16
17
@Input ( 'busy' ) loading : boolean ;
17
18
private $element : JQuery ;
18
19
You can’t perform that action at this time.
0 commit comments