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.
哦,天啊。谢谢你,先生! –