Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 120 posts 448 karma points
    Jun 28, 2018 @ 07:30
    Tom
    0

    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?

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Jun 28, 2018 @ 07:48
    Matthew Wise
    100

    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

  • Tom 120 posts 448 karma points
    Jun 28, 2018 @ 07:49
    Tom
    0

    Ok, have to live with the "old" way then. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft