From 007b4438a0af5dce543ce953a73ddfbb22ce6463 Mon Sep 17 00:00:00 2001 From: Earl St Sauver Date: Tue, 24 Nov 2015 23:16:46 -0800 Subject: [PATCH] docs: Remove elvis operator from example where it didn't belong closes #405 In the documentation, this section is discussing alternatives to the elvis operator. This particular section is supposed to be showing an alternative work around to the elvis operator, so this error is especially confusing. --- public/docs/ts/latest/guide/template-syntax.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.