Copied to clipboard

Flag this post as spam?

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


  • Dan Lister 416 posts 1974 karma points c-trib
    Apr 14, 2014 @ 09:28
    Dan Lister
    0

    Loading AngularJS Controllers Without Using Package.Manifest

    I'm looking to create a single file package. Is there a way to load AngularJS Controller scripts from embedded resources in an assembly much like how the PropertyEditorAssetAttribute works for Property Editors?

    I've taken the example for Tim's blog post and ideally would like the controllers automatically injected into a dashboard tab. My reasoning for this is so that I can avoid having two files within the package (assembly and manifest file).

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 17, 2014 @ 13:54
    Dave Woestenborghs
    1

    Hi Dan,

    If you use the approach Tim described in his post you don't need a package manifest file. You can include your assets with the PropertyEditorAsset attribute

     

    Dave

  • Dan Lister 416 posts 1974 karma points c-trib
    Apr 17, 2014 @ 16:46
    Dan Lister
    0

    Thanks Dave. I probably should have mentioned that I'm not creating a data type therefore wouldn't be able to use the PropertyEditorAssetAttribute. I'm creating a tab content package (kinda like a custom section) which is just a view. If I place a script file reference within the view, the script is loaded before AngularJS. Therefore, the controller cannot be loaded successfully.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 18, 2014 @ 09:45
    Dave Woestenborghs
    0

    I haven't tried to create a dashboard control in v7

    Maybe this post about creating custom sections in V7 can help you out : http://www.enkelmedia.se/blogg/2013/11/22/creating-custom-sections-in-umbraco-7-part-1.aspx

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft