page-test.component.html 430 B

12345678910111213141516
  1. <h2>星星打分演示:分值{{currentScore}}</h2>
  2. <edit-rating-star
  3. [score]="currentScore"
  4. [scoreMax]="5"
  5. (onScoreChange)="handleScoreChange($event)">
  6. </edit-rating-star>
  7. <h2>编辑标签演示</h2>
  8. <app-edit-tag (onTagChange)="setTagsValue($event)"></app-edit-tag>
  9. <h1>父级页面:从子组件输出事件获取属性</h1>
  10. <ul>
  11. @for(tag of editTags;track tag;){
  12. <li>{{tag}}</li>
  13. }
  14. </ul>