Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13372

Using AngularJS in a custom script leads to a race condition

    XMLWordPrintable

Details

    • Bug Report
    • Status: Open
    • L3 - Default
    • Resolution: Unresolved
    • 7.14.4
    • None
    • cockpit
    • None

    Description

      Environment (Required on creation):

      Webapps, Chrome

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      When bundling angularJS into a cockpit plugin, cockpit fails to load.

      Steps to reproduce (Required on creation):

      Observed Behavior (Required on creation):

      • Cockpit does not load

      Expected behavior (Required on creation):

      • Cockpit load every time

      Root Cause (Required on prioritization):

      If Angular gets registered to the window object before jquery is present, jqlite will be used. JQuery is required for cockpit to work.

      Solution Ideas (Optional):

      • Load the Plugins after the initial cockpit bootstrap, not during. This way, interference is minimized

      Hints (Optional):

      Only present in 7.14.4, we already refactored this in 7.15

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              martin.stamm Martin Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Salesforce