From b0c79f23730093d85aa9c8c3fe359deb113edf52 Mon Sep 17 00:00:00 2001 From: Dan Manastireanu <498419+danmana@users.noreply.github.com> Date: Fri, 28 Aug 2020 11:13:55 +0300 Subject: [PATCH] docs: Describe a scenario in which ngOnChanges is not called before ngOnInit. (#38625) Closes #38613 PR Close #38625 --- aio/content/guide/lifecycle-hooks.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aio/content/guide/lifecycle-hooks.md b/aio/content/guide/lifecycle-hooks.md index 27396d9e16..1314db1214 100644 --- a/aio/content/guide/lifecycle-hooks.md +++ b/aio/content/guide/lifecycle-hooks.md @@ -62,6 +62,8 @@ Angular executes hook methods in the following sequence. You can use them to per Called before `ngOnInit()` and whenever one or more data-bound input properties change. + Note that if your component has no inputs or you use it without providing any inputs, the framework will not call `ngOnChanges()`. +