Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Template must have exactly one root element
Message
 
 
À
Tous
Information générale
Forum:
AngularJS
Catégorie:
Problèmes
Titre:
Template must have exactly one root element
Divers
Thread ID:
01652893
Message ID:
01652893
Vues:
41
Hi,

UPDATE. I set the replace to false and it resolved the issue. Not sure why it was set to true and if it was significant or not.


I read the description of the problem, but I don't see a problem in this template. It only has 1 root element which is div and a table underneath.
<div>    
    <table  class="table-images" ng-show="vm.ShowTable">
        <tr>
            <th>@Labels.image</th>
            <th ng-if="vm.arFileInfo[0].fileData.name">@Labels.name</th>
            <th ng-if="vm.arFileInfo[0].fileData.size">@Labels.size KB</th>
            <th>@Labels.description</th>
            <th>@Labels.tags</th>
            <th>@Labels.delete</th>
        </tr>
        <tr ng-repeat="f in vm.arFileInfo">
           
            <td>
                <div ng-if="f.key != '0'" class="itImage-thumbnail pull-left">
                    <img ng-src="api/itimages/{{f.key}}" />
                    @*<img ng-src="{{'data:jpg;base64,' + f.image}}" />*@
                </div>
            </td>
            <td ng-if="f.fileData.name">{{f.fileData.name}}</td>
            <td ng-if="f.fileData.size">{{f.fileData.size/1024.0 | number: 1}}</td>
            <td><input class="form-control" id="descrip" name="descrip" placeholder="@Labels.description"  ng-model="f.image.descrip" /></td>
            <td><input class="form-control" id="tag" name="tag" placeholder="@Labels.tags" ng-model="f.image.tags" /></td>
            <td><label class="btn btn-default" ng-click="vm.delete(f.image)"><i class="fa fa-trash fa-lg"></i></label></td>
        </tr>
    </table>
</div>
Could the problem be the commented tag? I'll try removing it and see.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform