partails html изменения файла не отображаются в приложении angularjs - PullRequest
0 голосов
/ 02 мая 2019

Привет, я работаю с кодом приложения angularjs, когда я пытаюсь обновить любое значение или поле в js-файле. Я буду показывать изменения при обновлении браузера, но когда я изменяю html-файл, он не замедляет изменения

iЯ не уверен, что он будет работать как файл js, или мне нужно сделать что-то лишнее

    <div ng-if="companyProfile.loansAndRatings[0].ratings != undefined" >
            <div class="panel-heading">Credit ratings</div>
            <hr class="loan-margin">
            <div class="panel-body">
            <table class="table table-bordered ">
                <thead>
                    <tr>
                        <th>Agency</th>
                        <th>Instrument</th>
                        <th>Instrument Details</th>
                        <th>Rating</th>
                        <th>Outlook</th>
                    </tr>
                </thead>
                <tbody class="fontSynopsis">
                    <tr ng-repeat="creditRatings in companyProfile.loansAndRatings[0].ratings track by $index">
                        <td>{{creditRatings.agency}}</td>
                        <td>{{creditRatings.instrument}}</td>
                        <td>{{creditRatings.instrumentDetails}}</td>
                        <td>{{creditRatings.rating}}</td>
                        <td>{{creditRatings.outlook}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        </div>

Когда я обновляю код и любое значение статического значения, которое не замедляется после обновления страницы

<div ng-if="companyProfile.loansAndRatings[0].ratings != undefined" >
        <div class="panel-heading">Credit ratings</div>
        <hr class="loan-margin">
        <div class="panel-body">
        <table class="table table-bordered ">
            <thead>
                <tr>
                    <th>Agency</th>
                    <th>Instrument</th>
                    <th>Instrument Details</th>
                    <th>Rating</th>
                    <th>Outlook</th>
                </tr>
            </thead>
            <tbody class="fontSynopsis">
                <tr ng-repeat="creditRatings in companyProfile.loansAndRatings[0].ratings track by $index">
                    <td>{{creditRatings.instrument}}</td>
                    <td>{{creditRatings.instrument}}</td>
                    <td>{{creditRatings.instrumentDetails}}</td>
                    <td>{{creditRatings.rating}}</td>
                    <td>{{creditRatings.outlook}}</td>
                </tr>
            </tbody>
        </table>
    </div>
    </div>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...