I am currently using the most recent version of Angular and encountering an issue with the following code (which functioned properly in the past). The ng-init is causing a crash with the following error:
<tbody ng-controller="MyCtrl" id={{ row.id }} ng-init="init('{{ row.id }}', {$ config.stats $})">
In this code, {{ }} represents template rendering in Django, while {$ $} serves as the interpolation symbol in Angular (although it may seem unconventional, both backend and frontend data are necessary).
Upon attempting to render the page, I received the following error message:
Token 'config' is unexpected, expecting [:] at column 65 of the expression [init('row__e3ff11c0-bd6b-47e2-8ed8- ... starting at [config.stats $})].
This functionality was previously operational, but it appears that the latest version of Angular does not support it.
I am seeking guidance on resolving this issue so that I can successfully pass the config.stats JSON object into the init function.