Hey did you find the probllem ? even i am stuck at this error.

On Tuesday, 10 September 2013 23:27:16 UTC+5:30, Steve Pruitt wrote:
>
> I get the exception stack below...
>
> I was able to set exception breakpoints (WebStorm) to look at the state of 
> the compositeLinkFn function.  Approximately line 3934 in angular.js
> At the top of the function, the stableNodeList is initialized with the 
> nodes from nodeList parameter.  NodeList has a single html node (div) from 
> my partial page.  I use the ng-view directive to load this page.  Since I 
> have only a single node, stableNodeList has a length of 1.
>
> The main loop iterates over linkFns which has a length of 56.  On the 
> second iteration, n = 1 and node is set to undefined.  Apparently 
> nodeLinkFn is null, so we execute the else if around line 3972.  The 
> exception is thrown because node is undefined.
>
>      function compositeLinkFn(scope, nodeList, $rootElement, 
> boundTranscludeFn) {
>         :
>         var stableNodeList = [];
>         for (i = 0, ii = nodeList.length; i < ii; i++)  {
>           stableNodeList.push(nodeList[i]);
>         }
>
>         for(i = 0, n = 0, ii = linkFns.length; i < ii; n++) {
>             node = stableNodeList[n];
>             nodeLinkFn = linkFns[i++];
>             childLinkFn = linkFns[i++];
>
>         if (nodeLinkFn) {
>         :
>         :
>
>         } else if (childLinkFn) {
>             childLinkFn(scope, node.childNodes, undefined, 
> boundTranscludeFn);
>         }
>
> TypeError: Cannot read property 'childNodes' of undefined
>     at compositeLinkFn 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:3972:36)
>     at compositeLinkFn 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:3972:13)
>     at publicLinkFn 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:3874:30)
>     at update 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:14118:11)
>     at Object.$get.Scope.$broadcast 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:8261:28)
>     at 
> file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:7417:26
>     at deferred.promise.then.wrappedCallback 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6797:59)
>     at deferred.promise.then.wrappedCallback 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6797:59)
>     at 
> file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6834:26
>     at Object.$get.Scope.$eval 
> (file:///C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:8011:28)
>  
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:5704
>   C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:5704
>   $get 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:4800
>   $get.Scope.$broadcast 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:8263
>   C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:7417
>   deferred.promise.then.wrappedCallback 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6797
>   deferred.promise.then.wrappedCallback 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6797
>   C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:6834
>   $get.Scope.$eval 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:8011
>   $get.Scope.$digest 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:7876
>   $get.Scope.$apply 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:8097
>   done 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:9111
>   completeRequest 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:9274
>   xhr.onreadystatechange 
> C:/Projects/ThinClient/hydrogen/editor/app/lib/angular/angular.js:9244
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to