Angular 2 with Html5 application cache
问题 I have angular 2 website. I want to use html 5 application cache mechanism for this website to creating offline app for browsers. is it possible? if it is can you guide me. 回答1: Yes, It is possible through concept of service-worker, which should work in majority of the browsers. you can do that using this <script> if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/service-worker.js').then(function(registration) { console.log('Service Worker registered'); }).catch(function