Skip to content

Commit

Permalink
Demonstrate bi-directional mapping
Browse files Browse the repository at this point in the history
Change the very simple hello example to demonstrate bi-directional mapping
between react and angular. This can be run directly from the filesystem.
  • Loading branch information
shankari committed Jul 11, 2021
1 parent 5f91c2e commit 39badb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hello/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ app.value( "Hello", Hello );

app.directive( 'hello', function( reactDirective ) {
return reactDirective( Hello );
} );
} );
8 changes: 7 additions & 1 deletion examples/hello/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
</head>
<body ng-app="app" ng-controller="mainCtrl">
<div class="content">
<h1>
<div>Hello {{person.fname}} {{person.lname}}</div>
<small>
<code>&lt;From angular to check bi-directional binding/&gt;</code>
</small>
</h1>
<div class="header">
<h1>
<div><react-component name="Hello" props="person"/></div>
Expand Down Expand Up @@ -61,4 +67,4 @@ <h1>
<script src="../../ngReact.js"></script>
<script src="app.js"></script>
</body>
</html>
</html>

0 comments on commit 39badb4

Please sign in to comment.