Skip to content

Commit d2d8117

Browse files
shahatabtford
authored andcommitted
docs($rootScope): document scope properties
1 parent 63fb60d commit d2d8117

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/ng/rootScope.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,26 @@ function $RootScopeProvider(){
141141
/**
142142
* @ngdoc property
143143
* @name $rootScope.Scope#$id
144-
* @returns {number} Unique scope ID (monotonically increasing alphanumeric sequence) useful for
145-
* debugging.
144+
*
145+
* @description
146+
* Unique scope ID (monotonically increasing) useful for debugging.
146147
*/
147148

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

149165
Scope.prototype = {
150166
constructor: Scope,

0 commit comments

Comments
 (0)