The longer answer is that this is a limitation of the angular version Umbraco 7 is running on. HQ are looking to upgrade to the latest v 1.X version of Angular for Umbraco v8 (no eta yet).
Which means controllers can be lazy loaded by default. (requires a angular plugin I believe am sure it will get added)
Loading an angular controller on demand
Hi
Is there a way to load and use an angular controller when you need it? Instead of loading them throught the package.manifest file?
Hi Tom,
The short answer is no.
The longer answer is that this is a limitation of the angular version Umbraco 7 is running on. HQ are looking to upgrade to the latest v 1.X version of Angular for Umbraco v8 (no eta yet).
Which means controllers can be lazy loaded by default. (requires a angular plugin I believe am sure it will get added)
hope this helps
Matt
Ok, have to live with the "old" way then. Thanks!
is working on a reply...