Skip to content

Instantly share code, notes, and snippets.

@arsenetoumani
Last active February 24, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsenetoumani/c4b25aa0c5bba869491fdd8dac057070 to your computer and use it in GitHub Desktop.
Save arsenetoumani/c4b25aa0c5bba869491fdd8dac057070 to your computer and use it in GitHub Desktop.
Systelos AngularJS to React - imports all of the dependencies (scripts only) from node_modules that the app needs
'use strict';
window.moment = require('moment');
window.$ = require('jquery');
window.jquery = window.$;
window.jQuery = window.$;
require("angular");
require("react");
require("react-dom");
require("ngreact");
require("react2angular");
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment