Digging further into this I've found the following in the log files that indicate the custom angular controllers added via the PropertyEditorAsset attribute aren't being loaded:
2015-05-02 14:43:34,302 [10] ERROR Umbraco.Web.UI.CdfLogger - [Thread 6] Could not load file contents from /App_Plugins/UmbracoPersonalisationGroups/ResourceForCriteria/memberProfileField/definition.editor.controller.js. Domain is not white-listed.
I think this is related this commit in ClientDependency, looking to load local resource from disk rather than via a request - but as I'm using embedded resources the file isn't actually on disk.
Single file property editor and debug=false
I'm working on creating a property editor that will be deployed as a single dll, so using embedded resources for the angular view and controller.
Tim has a really useful blog post describing how to do this, which works fine. However only if I have debug="true" in my web.config.
With debug="false" I get the following message in the console (indicating that whilst the view is loading, the related controller can't be found):
Error: Argument 'MyController' is not a function, got undefined
Anyone come across this and know of a solution?
Thanks
Andy
Digging further into this I've found the following in the log files that indicate the custom angular controllers added via the PropertyEditorAsset attribute aren't being loaded:
I think this is related this commit in ClientDependency, looking to load local resource from disk rather than via a request - but as I'm using embedded resources the file isn't actually on disk.
Have submitted an issue here.
Andy
Found an answer/workaround here if anyone else comes across this (and thanks Dave Woestenborghs if you do!)..
is working on a reply...