two examples of implementing react components
This commit is contained in:
parent
67e466ee11
commit
36b1ee2be9
3 changed files with 26 additions and 19 deletions
|
@ -5,7 +5,16 @@
|
|||
<!-- New Public Repo Page experiment -->
|
||||
<div ng-if="newRepoExperiment">
|
||||
<!-- Test React Component -->
|
||||
<div><react-component name="TestComponent" props="reactProps"/></div>
|
||||
<div>
|
||||
<div>
|
||||
<div>This is using the generic react-component directive</div>
|
||||
<react-component name="test-component" props="reactProps"/>
|
||||
</div>
|
||||
<div>
|
||||
<div>This is creating a specific directive corresponding to a react component</div>
|
||||
<test-component first-prop="reactProps.firstProp" second-prop="reactProps.secondProp"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Old Repo Page -->
|
||||
<div ng-if="!newRepoExperiment">
|
||||
|
|
Reference in a new issue