Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Angular question
Message
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01601977
Message ID:
01602004
Views:
60
>Hi everybody,
>
>I have the following code for the listing of the table in the chtml view file which uses Angular.js framework:
>
>
>        <tbody>
>                            <tr ng-repeat="result in results" ng-click="loadView(result)">
>                                <td class="col-md-10">
>                                    {{ result.descrip }}
>                                    <span class="label label-danger pull-right" ng-show="result.hidden">Hidden</span>
>                                </td>
>                                <td class="col-md-2">
>                                    {{ result.tmplType | passTicket}}
>                                    <span class="label label-danger pull-right" ng-show="result.hidden">Hidden</span>
>                                </td>
>                            </tr>
>                        </tbody>
>
>
>As a result, I see title of the column saying 'Descrip' and 'tmplType'. I want to change the columns titles in the table to be 'Description' and 'Type' instead.
>

You'd normally have a thead section that includes the column names,ex.:
<table>
   <thead>
      <tr>
         <th>Description</th>
         <th>Type</th>
      </tr>
   </thead>
   <tbody>
      <!-- rest of your existing code here -->
   </tbody>
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform