Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1893

Document using js-bson in Angular 6+

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON, Docs
    • Labels:
      None

      Angular apps require the following to be added to polyfills.ts:

      (window as any).global = window;
      

      See https://stackoverflow.com/a/50488337/4930088. We should document that this is necessary for angular apps.

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: