diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 785cb72a1c..d9901b52a4 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -1258,7 +1258,7 @@ code-example(format="" language="html"). We can code around that problem with [`ng-if`](#ng-if) code-example(format="" language="html"). <!-- No hero, div not displayed, no error --> - <div *ng-if="nullHero">The null hero's name is {{nullHero?.firstName}} + <div *ng-if="nullHero">The null hero's name is {{nullHero.firstName}} :marked This approach has merit but it’s cumbersome, especially if the property path is long. Imagine guarding against a null somewhere in a long property path such as `a.b.c.d`.