Answer the question
In order to leave comments, you need to log in
How to change number of $digest iterations in Angular?
I have a tree view editor. There are not a few elements, the nesting is decent. Error pops up intermittently
Error: [$rootScope:infdig] angularjs/1.3.20/$rootScope/infdig?p0=10&p1
angular.module('App',[] ,function($rootScopeProvider) {$rootScopeProvider.digestTtl(15);})
.controller('EditorCtrl', ['$scope', 'fileUpload', '$http', 'iddirector', function ($scope, fileUpload, $http, iddirector) {
//controller content
Answer the question
In order to leave comments, you need to log in
I understand that you need to call it in the config block.
Something like this:
angular.module('App',[])
.config(['$rootScopeProvider', function($rootScopeProvider) { $rootScopeProvider.digestTtl(15); } ])
.controller( ... );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question