<!--<link rel="stylesheet" href="../../css/bootstrap-combined.min.css">-->
<div class="container">
    <div class="row">
        <div class="col-md-8">

            <div>
                <table class="table">
                    <thead>
                    <tr>
                    <tr>

                        <td colspan="12"><h1 style="font-size: 30px;text-align: center">{{catagoriById.name}}</h1></td>
                    </tr>
                    <th>STT</th>
                    <th>News title</th>
                    <th>Create Date</th>
                    <th>Content</th>
                    <th>Edit</th>
                    <th>Delete</th>

                    </tr>
                    </thead>
                    <tbody>
                    <tr class="vide" ng-repeat="new in catagoriById.news">
                        <td>{{$index + 1}}</td>
                        <td>{{new.title}}</td>
                        <td>{{new.createdAt}}</td>
                        <td>{{new.content}}</td>
                        <td><button  ng-click="editNews(new,catagoryById.id)">Edit</button> </td>
                        <td><button  ng-click="deleteNews(new.id,catagoryById.id)">Delete</button> </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
