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

Commit 8f14b72

Browse files
shahatabtford
authored andcommitted
docs($rootScope): document scope properties
1 parent 88b6a9a commit 8f14b72

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/ng/rootScope.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,26 @@ function $RootScopeProvider(){
139139
/**
140140
* @ngdoc property
141141
* @name $rootScope.Scope#$id
142-
* @returns {number} Unique scope ID (monotonically increasing alphanumeric sequence) useful for
143-
* debugging.
142+
*
143+
* @description
144+
* Unique scope ID (monotonically increasing) useful for debugging.
144145
*/
145146

147+
/**
148+
* @ngdoc property
149+
* @name $rootScope.Scope#$parent
150+
*
151+
* @description
152+
* Reference to the parent scope.
153+
*/
154+
155+
/**
156+
* @ngdoc property
157+
* @name $rootScope.Scope#$root
158+
*
159+
* @description
160+
* Reference to the root scope.
161+
*/
146162

147163
Scope.prototype = {
148164
constructor: Scope,

0 commit comments

Comments
 (0)