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

Commit 35bbeb2

Browse files
Foxandxsswardbell
authored andcommitted
chore: s/falsey/falsy (#3093)
1 parent 5b30c68 commit 35bbeb2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: public/_includes/_util-fns.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
//- Other
5858
- var _truthy = 'truthy';
59-
- var _falsey = 'falsey';
59+
- var _falsy = 'falsy';
6060

6161
//- Used to prefix identifiers that are private. In Dart this will be '_'.
6262
- var _priv = '';

Diff for: public/docs/ts/latest/guide/displaying-data.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
block includes
22
include ../_util-fns
33
- var _iterableUrl = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols';
4-
- var _boolean = 'truthy/falsey';
4+
- var _boolean = 'truthy/falsy';
55

66
:marked
77
You can display data by binding controls in an HTML template to properties of an Angular component.

Diff for: public/docs/ts/latest/guide/router.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ a#CanDeactivate
21742174
Notice that the `canDeactivate` method *can* return synchronously;
21752175
it returns `true` immediately if there is no crisis or there are no pending changes.
21762176
But it can also return a `Promise` or an `Observable` and the router will wait for that
2177-
to resolve to truthy (navigate) or falsey (stay put).
2177+
to resolve to truthy (navigate) or falsy (stay put).
21782178

21792179
:marked
21802180
Add the `Guard` to the crisis detail route in `crisis-center-routing.module.ts` using the `canDeactivate` array.

Diff for: public/docs/ts/latest/guide/template-syntax.jade

+4-4
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ code-example(format="nocode").
671671
:marked
672672
Finally, we can bind to a specific class name.
673673
Angular adds the class when the template expression evaluates to #{_truthy}.
674-
It removes the class when the expression is #{_falsey}.
674+
It removes the class when the expression is #{_falsy}.
675675
+makeExample('template-syntax/ts/app/app.component.html', 'class-binding-3')(format=".")
676676

677677
.l-sub-section
@@ -828,7 +828,7 @@ block style-property-name-dart-diff
828828
[event propagation](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Examples#Example_5:_Event_Propagation)
829829
continues or stops with the current element.
830830
831-
Event propagation stops if the binding statement returns a falsey value (as does a method with no return value).
831+
Event propagation stops if the binding statement returns a falsy value (as does a method with no return value).
832832
Clicking the button in the next example triggers a save;
833833
the click doesn't make it to the outer `<div>` so the div's save handler is not called.
834834
+makeExample('template-syntax/ts/app/app.component.html', 'event-binding-no-propagation')(format=".")
@@ -1052,10 +1052,10 @@ figure.image-display
10521052
Don't forget the asterisk (`*`) in front of `ngIf`.
10531053
For more information, see [\* and &lt;template>](#star-template).
10541054
:marked
1055-
Binding to a #{_falsey} expression removes the element subtree from the DOM.
1055+
Binding to a #{_falsy} expression removes the element subtree from the DOM.
10561056
+makeExample('template-syntax/ts/app/app.component.html', 'NgIf-2')(format=".")
10571057

1058-
block dart-no-truthy-falsey
1058+
block dart-no-truthy-falsy
10591059
//- N/A
10601060
10611061
:marked

0 commit comments

Comments
 (0)