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

Using AngularJS in a custom script leads to a race condition

XMLWordPrintable

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

      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

        This is the controller panel for Smart Panels app

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

                Created:
                Updated: