2016-02-17 52 views
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。

+0

你嘗試硬刷新? – dnit13

+0

我做了硬刷新,但仍未刷新。在Chrome中,我試圖在新的隱身窗口中打開它只刷新一次,但如果我再次進行更改,但即使在隱身窗口中也未更新 –

+0

您是否可以在線共享您的代碼? – Shashank

回答

0

您可以停用瀏覽器緩存 - 在右下角的Chrome開發工具中點擊齒輪並勾選選項。

禁用緩存(而DevTools是打開的)

在Firefox中存在調試器相同的選項 - >設置 - >高級部分 (不知道它在人火狐潤通說,它不爲他們工作)