angular参数传递的几种方式
1.查询字符串的方式
链接
<div *ngFor="let list of item.Books" [routerLink]="['/detail',{bookId:list.Book.Id}]">
</div>
接受参数代码
this.bookId = this.activedrouted.snapshot.params['book
原创
2018-10-15 21:24:38 ·
7954 阅读 ·
1 评论