2016-08-21 68 views
0

在Chrome瀏覽器中查看時,我一直在獲取不想要的span標記和「s」。我在網上搜索,但我仍然難倒。請幫助?不需要的<span class =「ng-scope」> s</span>

Stop AngularJS inserting <span class="ng-scope"></span> using ng-include

看着那個帖子。類似的問題,但我認爲我的問題是由別的東西引起的。我不使用ng-include。

讓我知道,如果我可以提供更多的細節!

下面是代碼https://github.com/benhbaik/crm

這裏是公共/視圖/用戶/ all.html和它下面的問題的屏幕截圖。

<div class="page-header"> 
    <h1> 
     Users 
     <a href="https://stackoverflow.com/users/create" class="btn btn-default"> 
      <span class="glyphicon glyphicon-plus"></span> 
      New User 
     </a> 
    </h1> 
</div> 

<div class="jumbotron text-center" ng-show="user.processing"> 
    <span class="glyphicon glyphicon-repeat spinner"></span> 
    <p>Loading Users...</p> 
</div> 

<!-- GETTING RANDOM SPAN TAG HERE w/ "s" --> 

<table class="table table-bordered table-striped"> 
    <thead> 
     <tr> 
      <th>_id</th> 
      <th>Name</th>s 
      <th>Username</th> 
      <th class="col-sm-2"></th> 
     </tr> 
    </thead> 

    <tbody> 
     <tr ng-repeat="person in user.users"> 
      <td>{{ person._id }}</td> 
      <td>{{ person.name }}</td> 
      <td>{{ person.username }}</td> 
      <td class="col-sm-2"> 
       <a href="https://stackoverflow.com/users/{{ person._id }}" class="btn btn-danger">Edit</a> 
       <a href="#" ng-click="user.deleteUser(person._id)" class="btn btn-primary">Delete</a> 
      </td> 
     </tr> 
    </tbody> 
</table> 

Here is a picture in dev tools.

回答

0

有一個在你的代碼一個錯字:

<th>Name</th>s 
+0

哦,天啊。謝謝你,先生! –

相關問題