File tree 2 files changed +5
-5
lines changed
src/lib/components/notion-page
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ngx-notion-cms" ,
3
- "version" : " 0.0.3 " ,
3
+ "version" : " 0.0.4 " ,
4
4
"peerDependencies" : {
5
5
"@angular/common" : " ^18.2.0" ,
6
6
"@angular/core" : " ^18.2.0" ,
Original file line number Diff line number Diff line change 5
5
Component ,
6
6
inject ,
7
7
input ,
8
- OnInit ,
9
- signal ,
8
+ OnChanges ,
9
+ signal
10
10
} from '@angular/core' ;
11
11
import { map , Observable } from 'rxjs' ;
12
12
import { INgxNotionResponse } from '../../services/http-notion.service' ;
@@ -30,7 +30,7 @@ import { NotionTableOfContentsComponent } from '../table-of-contents/notion-tabl
30
30
styleUrl : './notion-page.component.css' ,
31
31
changeDetection : ChangeDetectionStrategy . OnPush ,
32
32
} )
33
- export class NotionPageComponent implements OnInit {
33
+ export class NotionPageComponent implements OnChanges {
34
34
private ngxNotionService : NgxNotionService = inject ( NgxNotionService ) ;
35
35
36
36
public pageId = input . required < string > ( ) ;
@@ -39,7 +39,7 @@ export class NotionPageComponent implements OnInit {
39
39
public notionBlocksQuery ! : INgxNotionResponse < NotionBlock [ ] > ;
40
40
private cdr = inject ( ChangeDetectorRef ) ;
41
41
42
- ngOnInit ( ) : void {
42
+ ngOnChanges ( ) : void {
43
43
this . notionBlocksQuery = this . ngxNotionService . getPageBlocks (
44
44
this . pageId ( )
45
45
) ;
You can’t perform that action at this time.
0 commit comments