Ben Baik Ben Baik - 1 year ago 114
AngularJS Question

Unwanted <span class="ng-scope"> s</span>

I keep on getting an unwanted span tag with and "s" in it when viewing in Chrome. I've searched online but I am still stumped. Help please?

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

Looked at that post. Similar problem but I think my issue is caused by something else. I am not using ng-include.

Let me know if I can provide more details!

Here is the code

Here is public/views/users/all.html and a screenshot of the issue below it.

<div class="page-header">
<a href="/users/create" class="btn btn-default">
<span class="glyphicon glyphicon-plus"></span>
New User

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


<table class="table table-bordered table-striped">
<th class="col-sm-2"></th>

<tr ng-repeat="person in user.users">
<td>{{ person._id }}</td>
<td>{{ }}</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>

Here is a picture in dev tools.

Answer Source

There's a typo in your code:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download