Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fcf182e

Browse files
kentwaltersgkalpak
authored andcommittedNov 14, 2016
docs(guide/controller): change "hides" to "shadows"
"Shadows" should better convey the meaning of "overwriting the value of the property in the child scope, while leaving the parent scope intact". "Hides" could give the impression that it makes the property unavailable in the child scope and leaving "overrides" only, could give the impression that the parent scope would be affected too, especially to people not familiar with JavaScript's prototypal inheritance. Closes #15375
1 parent f582f9e commit fcf182e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/content/guide/controller.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ scopes being created for our view:
253253

254254
- The root scope
255255
- The `MainController` scope, which contains `timeOfDay` and `name` properties
256-
- The `ChildController` scope, which inherits the `timeOfDay` property but overrides (hides) the `name`
257-
property from the previous
258-
- The `GrandChildController` scope, which overrides (hides) both the `timeOfDay` property defined in `MainController`
259-
and the `name` property defined in `ChildController`
256+
- The `ChildController` scope, which inherits the `timeOfDay` property but overrides (shadows) the
257+
`name` property from the previous scope
258+
- The `GrandChildController` scope, which overrides (shadows) both the `timeOfDay` property defined
259+
in `MainController` and the `name` property defined in `ChildController`
260260

261261
Inheritance works with methods in the same way as it does with properties. So in our previous
262262
examples, all of the properties could be replaced with methods that return string values.

0 commit comments

Comments
 (0)
This repository has been archived.