I have this code in my HTML:
<uib-pagination
previous-text="{{previousText}}"
next-text="{{nextText}}"
</uib-pagination>
My angular translate is being $watch:
$translate(['PREVIOUS', 'NEXT']).then(function (translations) {
$scope.previousText = translations.PREVIOUS;
$scope.nextText = translations.NEXT;
});
but then I get this error:
I'll try to solve it with this tutorial :
https://docs.angularjs.org/error/$rootScope/infdig
How to Troubleshoot Angular "10 $digest() iterations reached" Error
but I'm still getting same errors. I try to troubleshoot by removing some code and this is my new code but I'm still getting same errors.
$scope.$watch(function()
{
$translate().then(function () {
});
}, true);
I am clueless right now. How can I solve this problem? by the way, the pagination did managed to translated but I've seen this error in my console and it's not neat. Thanks in advance.