未捕获的错误:模板解析错误:意外的结束标记“a”。当标签已经被另一个标签关闭时可能会发生

时间:2021-07-25 12:26:47

标签: html angular

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">

<div class="container">
  <table class="table">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">Product Company</th>
        <th scope="col">Model</th>
        <th scope="col">Price</th>
        <th scope="col">Edit</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let item of productList">
        <td>{{item.id}}</td>
        <td>{{item.pname}}</td>
        <td>{{item.model}}</td>
        <td>{{item.price}}</td>
        <td><a routerLink=/updateoneproduct/{{item.id}}><i class="far fa-edit"></i></a></td>
      </tr>
    </tbody>
  </table>
  <input type="button" value="Logout" (click)="logout()">
  
</div>

这是我试图在我的 angular 项目中执行的 html 代码。 未捕获的错误:模板解析错误: 意外的结束标记“a”。当标签已经被另一个标签关闭时可能会发生

0 个答案:

没有答案