v7 PropertyEditor - How to add an AngularJS directive?
I'm trying to create a custom PropertyEditor in Belle (v7) and I would like to use an existing AngluarJs directive / module to handle the UI and manage the binding.
I'm using the ui-select2 directive (https://github.com/angular-ui/ui-select2)
My problem is that I'm not sure how to include the ui-select2 module as a dependency.
I'm not 100% sure but I don't think you can add dependencies to the umbraco module once it has been initialized. It would be a nice feature if there was a section in the package.manifest where you could specify additional script files and module names to be loaded and added to the umbraco module dependencies before Angular gets started up.
v7 PropertyEditor - How to add an AngularJS directive?
I'm trying to create a custom PropertyEditor in Belle (v7) and I would like to use an existing AngluarJs directive / module to handle the UI and manage the binding.
I'm using the ui-select2 directive (https://github.com/angular-ui/ui-select2)
My problem is that I'm not sure how to include the ui-select2 module as a dependency.
Normally, you would do something like this:
However, the "umbraco" module is already created and what I add my property editor to in my javascript file in app plugins.
I'm pretty new to AngularJs, so how would I go about adding that?
I'm not 100% sure but I don't think you can add dependencies to the umbraco module once it has been initialized. It would be a nice feature if there was a section in the package.manifest where you could specify additional script files and module names to be loaded and added to the umbraco module dependencies before Angular gets started up.
Related issue: http://issues.umbraco.org/issue/U4-2769
Janne,
Thanks for the heads up and the link to that issue. I figure they will work something out soon enough, but just wanted to make sure its on the radar.
Thanks,
Jason
Did anything move on from this?
Keen to use existing directives myself.
Thanks
Matt
Sorry... just seen the link to issues.umbraco.
Ignore me.
is working on a reply...