Deploy Angular to the Azure Storage
簡介
上一篇提到如何在Linux環境下的 Azure App Service 部屬Angular,今天試著把部屬到Azure Storage。
上一篇提到如何在Linux環境下的 Azure App Service 部屬Angular,今天試著把部屬到Azure Storage。
最近嘗試使用Linux環境下的 Azure App Service 部屬Angular,發現與Windows環境設定方式不太一樣,所以將做法記錄一下。
記錄如何取得npm 的 .npmrc 配置文件位置、如何修改npmrc 配置文件以及執行ng update發生npm ERR! 401 Unauthorized處理方式。
簡單記錄一下,如何設定Url PathLocationStrategy(不帶#)(預設)與HashLocationStrategy(帶#)。
在之前使用angularjs時,有時會使用到$scope.$apply 來幫助我們進行資料更新,而更新到angular 2+之後則可使用ChangeDetectorRef 來達到原本所要的需求。