You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
If a ngRoute view contains an inline script with controller definition, that controller fails to register. A workaround is to enable $controllerProvider.allowGlobals(); and define a controller as a global function, but the recommended approach does not work.
Nope, currently there is no mechanism to load controllers on demand. We are working on it and @btford owns the topic, you can read more about it here: #11015
Global controllers were dropped in 1.3 so this is not a path to take either.
If a ngRoute view contains an inline script with controller definition, that controller fails to register. A workaround is to enable
$controllerProvider.allowGlobals();
and define a controller as a global function, but the recommended approach does not work.Here's the plunker showing the problem: http://plnkr.co/edit/JU350xL7X9ryF3S72o6s
Click on the link there to change the route and take a look at the browser's console.
The text was updated successfully, but these errors were encountered: