Package Exports
- react-to-angularjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-to-angularjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ReactToAngularJs
Helps you to migrate yours AngularJs Application to React component by component
Author: Guima Ferreira
ReactToAngularJs.R2AComponent(component, bindingNames)
Returns AngularJs Component config object that renders a React Component
Kind: static method of ReactToAngularJs
| Param | Type | Description |
|---|---|---|
| component | Class |
React Component Class |
| bindingNames | Array |
AngularJs Component Attributes |
ReactToAngularJs~R2AComponents
Generate AngularJs Components
Kind: inner property of ReactToAngularJs
| Param | Type | Description |
|---|---|---|
| mod | String |
AngularJs Module name |
| components | Array |
collection of AngularJs Components to be generated |
Example
[
// <my-component name="'Roger'" on-change="vm.onChange"></my-component>
{
name: "myComponent",
react: MyComponent, // a React Component imported
props: ["name", "onChange"],
},
// <simple-component></simple-component>
{
name: "simpleComponent",
react: SimpleComponent, // a React Component imported
},
];