Вы можете использовать React Component
с Angular Directive
или использовать его внутри
$onInit
в angular
var HelloWorld = React.createClass({
displayName:'Hello World',
render:function(){
return React.DOM.div(Test, "Hello, ",this.props.value1);
}
});
$scope.name = 'World!';
app.directive('hello', function(){
return {
restrict:'E',
scope:{
name:'='
},
link:function(scope, el, attrs){
scope.$watch('name', function(newValue, oldValue){
var MyComponent = React.createFactory(HelloWorld);
ReactDOM.render(
MyComponent({value1:newValue}),
el[0]
);
})
}
}
})