Quantcast
Channel: Forum
Viewing all articles
Browse latest Browse all 3613

Epi Server 9, MVC, SPA, Angular, Edit Mode

$
0
0

Hey guys,

I am looking for some ideas.

I have an epi server website which is effectively a SPA built with Angular. Angular takes care of routing. Some blocks have angular stuff on them and are part of the SPA so function with all the Angular bits already loaded. All this works great. The difficulty comes when you need to edit something in the Epi Admin section.

In order to get the pages to render something, I had to add the required layout pages inside  a block which checks if they are in edit mode or not. This takes care of loading the styles and all the Javascript files required for the app to function. When you run the website, certain functions trigger but in edit mode nothing happens. What I would like is to load some hardcoded data, when the page is in edit mode so I can see what it would look like with real data. 

Has anyone done this before and can provide some ideas on how to accomplish this ?


Viewing all articles
Browse latest Browse all 3613

Latest Images

Trending Articles



Latest Images