简体   繁体   English

不需要<span class=“ng-scope”>的</span>

[英]Unwanted <span class=“ng-scope”> s</span>

I keep on getting an unwanted span tag with and "s" in it when viewing in Chrome. 在Chrome浏览器中查看时,我一直在获取带有和“ s”的不需要的跨度标签。 I've searched online but I am still stumped. 我已经在网上搜索过,但仍然很困惑。 Help please? 请帮助?

Stop AngularJS inserting <span class="ng-scope"></span> using ng-include 停止AngularJS使用ng-include插入<span class =“ ng-scope”> </ span>

Looked at that post. 看了那个帖子。 Similar problem but I think my issue is caused by something else. 类似的问题,但我认为我的问题是由其他原因引起的。 I am not using ng-include. 我没有使用ng-include。

Let me know if I can provide more details! 如果可以提供更多详细信息,请告诉我!

Here is the code https://github.com/benhbaik/crm 这是代码https://github.com/benhbaik/crm

Here is public/views/users/all.html and a screenshot of the issue below it. 这是public / views / users / all.html及其下面的问题的屏幕截图。

<div class="page-header">
    <h1>
        Users
        <a href="/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="/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. 这是开发工具中的图片。

您的代码中有错别字:

<th>Name</th>s

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM