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).
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
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.
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).
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
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.
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
is working on a reply...