Skip to content

Commit de08a98

Browse files
authored
Replace old mentioning of ngAfterViewInit with afterRenderEffect (playfulprogramming#1248)
2 parents 025fef5 + ff300d0 commit de08a98

File tree

1 file changed

+1
-1
lines changed
  • content/crutchcorn/collections/framework-field-guide-fundamentals/posts/ffg-fundamentals-element-reference

1 file changed

+1
-1
lines changed

content/crutchcorn/collections/framework-field-guide-fundamentals/posts/ffg-fundamentals-element-reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ function App() {
919919

920920
## Angular
921921

922-
We can adopt the above code and place it within our `ngAfterViewInit` lifecycle method to add the `addEventListener` to our context menu.
922+
Let's adopt the above click listener and apply it within `afterRenderEffect`.
923923

924924
Additionally, we'll use `ViewChild` to track the `contextMenu` element and `.focus` it when it becomes active.
925925

0 commit comments

Comments
 (0)