Including the Angular Distribution

Make sure you include the AngularJS build of the Forms SDK:

  1. <script src="angular.min.js" type="text/javascript"></script>
  2. <script src="camunda-bpm-sdk-angular.js" type="text/javascript"></script>

Loading the Forms Module

Add the Forms SDK as module dependency to your applicationmodule:

  1. angular.bootstrap(window.document, ['cam.embedded.forms', ...]);

Angular Directives & Compilation

If the form is loaded from a URL, the SDK makes sure that it is properly compiled and linked to the current Angular scope. This allows using Angular directives in forms loaded dynamically at runtime.

  1. <form role="form" name="form">
  2. <input type="text"
  3. cam-variable-name="CUSTOMER_ID"
  4. cam-variable-type="String"
  5. ng-model="customerId">
  6. <p ng-show="customerId">Your input: <em>{{customerId}}</em></p>
  7. </form>

原文: https://docs.camunda.org/manual/7.9/reference/embedded-forms/integrate/angular-js/