Skip to content

Showcases a way to run angularJS components inside a react application

Notifications You must be signed in to change notification settings

katrotz/react-angularjs-bridge

Repository files navigation

react-angularjs-bridge

Example of react application hosting an angularJS component and their interoperability. Click here for a demo

React AngularJS Bridge

  • Encapsulates the angularJS application using shadow DOM, which means that the react styles will not leak into he angular componen and vice-versa.
  • AngularJS inlines some styles in the host document on load. To avoid it configure the ngCsp by adding an attribute to the body <body data-ng-csp="no-inline-style"></body>
  • The angularJS component is an as external library for the react application, hence it is treated as such.

PS: There are more things to consider like intercepting the browser location mutations by angular routing if applicable, caching angular component resources in eg. service worker etc., but it is out of scope for this demo.

About

Showcases a way to run angularJS components inside a react application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published