Skip to content

Instantly share code, notes, and snippets.

@duanebester
Last active March 8, 2019 15:58
Show Gist options
  • Save duanebester/2c57f004816edd99141ff64856c40d77 to your computer and use it in GitHub Desktop.
Save duanebester/2c57f004816edd99141ff64856c40d77 to your computer and use it in GitHub Desktop.
Angular controller diff
 import './productPageAdmin.scss';
 import template from './productPageAdmin.html';
+import {react2angular} from 'react2angular';
+import ProductManager from 'components/pages/admin/productManager';
 
 const productPageAdmin = angular.module('productPageAdmin', [grid, resources, editProduct]);
+
+productPageAdmin.component('productManager', react2angular(ProductManager));
+
 productPageAdmin.component(productPageAdmin.name, {
   template,
   controller: class {
     constructor (resources) {
       this.resources = resources;
       this.query = this.resources.query('product', {els: true});
     }
   },
 });
 export default productPageAdmin.name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment