Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: post-rv edits (MGNLFE-17)

...

In the Angular framework, If you call the status of an SPA page being in the developer mode can be checked by calling the isDevMode() function, which is part of the @angular/core library, and the developer mode is enabled, you can see the status as a comment in the DOM element.

To find out in Angular whether your SPA page is running in the page editor or in its page preview mode, inject the RendererContextService from the @magnolia/angular-renderer. You can then call the following functions to get the status:

...