Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can I implement a macro with Angular code in it that would run correctly in the grid layout editor?
My Angular controller doesn't get executed. It's not a plugin so there is no manifest to register it.
Just out of curiosity, why are you trying to execute Angular in a macro? They're design to provide dynamic content to users on the client-side.
Can you not just create a plugin instead and reference the cshtml file in the "render" property of the package.manifest?
An long tedious guide can be found here
The goal is to make custom complex forms (or other complex front end components) available in a grid layout. Since Umbraco uses Angular for its backend, I figured it would be simpler to use an Angular controller.
You can create forms in plugins and then easily attach them to the grid.
I gave it a try. The "render" view (cshtml) is not executed automatically in the backend. I need to implement and call something similar to GetMacroResultAsHtmlForEditor.
In the end the editor and the rendering are still completely separate. There is no benefit in using Angular to render the cshtml.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted