Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 007b443

Browse files
estsauverwardbell
authored andcommitted
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.
1 parent 758821c commit 007b443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/docs/ts/latest/guide/template-syntax.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ code-example(format="" language="html").
12581258
We can code around that problem with [`ng-if`](#ng-if)
12591259
code-example(format="" language="html").
12601260
<!-- No hero, div not displayed, no error -->
1261-
&lt;div *ng-if="nullHero">The null hero's name is {{nullHero?.firstName}}</div>
1261+
&lt;div *ng-if="nullHero">The null hero's name is {{nullHero.firstName}}</div>
12621262
:marked
12631263
This approach has merit but it’s cumbersome, especially if the property path is long.
12641264
Imagine guarding against a null somewhere in a long property path such as `a.b.c.d`.

0 commit comments

Comments
 (0)