/ Play Store • Installable & Remove-able (Show in Home Screen) • Workable / Semi-workable offline • Need to update • Talk to native api - camera / sensor / notification
away) • Have address bar • Cross platforms • Non-workable / Semi-workable offline • Refresh browser / Auto update • Talk to limited native api - camera / notification
Store web • Installable & Remove-able (Show in Home Screen) • No address bar • Cross platforms • Workable / Non-workable / Semi-workable offline • Refresh browser Need / Auto update • Talk to limited native api - camera / notification
update updates.checkForUpdate(); // when sw update available updates.available.subscribe(event => { console.log('current version is', event.current); console.log('available version is', event.available); }); }
Store web • Installable & Remove-able (Show in Home Screen) • No address bar • Cross platforms • Workable / Non-workable / Semi-workable offline • Refresh browser Auto / Need update • Talk to limited native api - camera / notification
Load HTML Boostrap Boostrap First meaningful Paint <app-root> Loading</app-root> First meaningful Paint Loading • Better first load experience • Social links with preview of a website • Better for SEO
ng add @ng-toolkit/universal • npm run build:prod • npm run server Short way Follow the guide here: https://angular.io/guide/universal https://medium.com/@maciejtreder/angular-server-side-rendering-with-ng-toolkit- universal-c08479ca688