We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Angular error - Unable to get property 'tmpl.$newscope' of undefined or null reference

Hi,
I am getting this error quite frequently since upgrading to latest version 13.0.0.29, but can't see why it is happening. Any thoughts?

TypeError: Unable to get property 'tmpl.$newscope' of undefined or null reference
   at Anonymous function (http://localhost:59999/Scripts/ej/ej.widget.angular.min.js:10:7482)
   at Scope.prototype.$broadcast (http://localhost:59999/Scripts/angular.js:14785:15)
   at Scope.prototype.$destroy (http://localhost:59999/Scripts/angular.js:14405:9)
   at ngRepeatAction (http://localhost:59999/Scripts/angular.js:24653:13)
   at $watchCollectionAction (http://localhost:59999/Scripts/angular.js:14175:13)
   at Scope.prototype.$digest (http://localhost:59999/Scripts/angular.js:14308:23)
   at Scope.prototype.$apply (http://localhost:59999/Scripts/angular.js:14571:13)
   at Anonymous function (http://localhost:59999/Scripts/angular.js:21571:17)
   at jQuery.event.dispatch (http://localhost:59999/Scripts/jquery-2.1.3.js:4429:6)
   at elemData.handle (http://localhost:59999/Scripts/jquery-2.1.3.js:4115:5)


Cheers ... Rob.

3 Replies

AK Arun Kumar S Syncfusion Team August 17, 2015 12:04 PM UTC

Hi Rob,

Thank you for using Syncfusion products.

We have analyzed your query. We need more information to recreate the sample to find the exact defect. So could you please provide us the following details?

1.       In your query you mentioned that you are using the version 13.0.0.29. We would suspect that it would be version 13.2.0.29 if it is not the version we have mentioned, then please tell us the exact version since we don’t have 13.0.0.29 version.
2.       Could you please tell us in which scenario you are facing this error message i.e. the replication procedure?
3.       If possible could you please share your sample or code snippet to recreate the sample to identify the cause for the error.

The information you provided would be of very helpful for us to resolve the defect and assist you better.

Please let me know if you have any concerns.
 
Regards,
Arun Kumar S


RO Rob ONeill August 18, 2015 10:39 AM UTC

Hi,
1. Yes, sorry it is 13.2.0.29

2. Our scenario is using AngularJS with MVC. As I can't find exactly where this error is thrown I believe the scenario is using an ng-repeat and inside the ng-repeat there are syncfusion controls, such as a dropdown and treeview. These controls are therefore created dynamically with the data from the repeat. The error occurs (I think) when we delete from the ng-repeat (ie remove an item from the collection). All we doing with the collection is using the splice method on the array to remove that item that is no longer needed. After that occurs we get the "Unable to get property 'tmpl.$newscope' of undefined or null reference" error in the console.

3. Our code is very complicated to send a sample

Cheers ... Rob.


HP Harikrishnan P Syncfusion Team August 19, 2015 11:46 AM UTC

Hi Rob,

Thanks for your update.

In our version 13.2.0.29 this error occurs while destroying the component or while navigating to different view. We have fixed this issue internally and this fix is included in our latest service pack release version 13.2.0.34. So please use the script files from our latest version and this issue will be resolved. Our latest version is available for download under the following location

http://www.syncfusion.com/forums/119866/essential-studio-2015-volume-2-service-pack-release-v13-2-0-34-available-for-download


If still you face any difficulties kindly get back to us with more information about the issue and we will be happy to help you.

Regards,
HariKrishnan

Loader.
Live Chat Icon For mobile
Up arrow icon