Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Preview with Angular 1.6 #2120

Closed
jamesmusgrave opened this issue Nov 21, 2017 · 1 comment
Closed

Live Preview with Angular 1.6 #2120

jamesmusgrave opened this issue Nov 21, 2017 · 1 comment
Labels
enhancement improvements to existing features live preview 👁️ features related to Live Preview

Comments

@jamesmusgrave
Copy link

Description

I’m trying to develop a site using Craft 3 and Angular 1.6.

The Angular app works correctly within the live preview window. However when I edit the content and the POST request is made to update the preview I get the error

WARNING: Tried to load angular more than once.

This causes the angular app to become detached from the DOM.

Have you encounter this issue before?

Could I ask what is exactly happening within the Live Preview window? I can see a POST request is happening. Is DOM being injected using JS? Is there anything I could do to force a full page refresh within the iFrame with the new content?

Is it possible to get live preview content via the Element API?

Steps to reproduce

  1. Bootstrap basic angular app (no router)
  2. Edit page using Live Preview

Additional info

  • Craft version: Craft Pro 3.0.0-beta.34
  • PHP version: 7.1.11
  • Database driver & version: MySQL 5.7.20
  • Plugins & versions:
    Amazon S3 1.0.7
    Element API 2.5.1
    Mix 1.3.0
    NSM Fields 0.0.4
    Amazon SES 1.0.0
@brandonkelly brandonkelly added live preview 👁️ features related to Live Preview feature labels Feb 25, 2018
@brandonkelly brandonkelly added enhancement improvements to existing features and removed feature labels Mar 5, 2019
brandonkelly added a commit that referenced this issue May 17, 2019
Resolves #1021
Resolves #1034
Resolves #1135
Resolves #1231
Resolves #1489
Resolves #1787
Resolves #2120
Resolves #2325
Resolves #2669
Resolves #2909
Resolves #3349
Resolves #3392
Resolves #926
@brandonkelly
Copy link
Member

This has been resolved for the next 3.2 Alpha release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features live preview 👁️ features related to Live Preview
Projects
None yet
Development

No branches or pull requests

2 participants