0
我是Angular JS的新手。我試圖通過使用ng-include在profiletest.html中包含profile.html。更改沒有更新ng-include
下面給出的是
profiletest.html
<body>
<div ng-app="guestProfileApp">
<div ng-controller="guestProfileController">
<button ng-click="getProfile(401)">Show Profile</button>
<ng-include ng-if="showProfile" src="'profile.html'"></ng-include>
</div>
</div>
當我在更改profile.html代碼,這些變化沒有得到在更新的時候我profiletest.html的代碼我在瀏覽器中刷新了profiletest.html。
你嘗試硬刷新? – dnit13
我做了硬刷新,但仍未刷新。在Chrome中,我試圖在新的隱身窗口中打開它只刷新一次,但如果我再次進行更改,但即使在隱身窗口中也未更新 –
您是否可以在線共享您的代碼? – Shashank