Progressive Web Apps with Angular

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 52

  • @ouyahama
    @ouyahama 7 ปีที่แล้ว +8

    for people thinking of using sw-precache in development you got 2 options:
    1. use a light weight server like Jeff suggested
    or if you can't live without the webpack config file like me
    2. use eject to gain full control and get back your webpack config so you can add webpack plugins including sw-precache.

    • @Fireship
      @Fireship  7 ปีที่แล้ว

      +Kawzaki Thank you! This is helpful.

    • @StijnHommes
      @StijnHommes 3 ปีที่แล้ว

      Or you could just not precache so you're no longer depending on malicious service workers that install without end user permission.

  • @seifsgayer3605
    @seifsgayer3605 7 ปีที่แล้ว +8

    this dude takes you straight to the tl;dr section. ggwp!

  • @MercyFromOverwatch2
    @MercyFromOverwatch2 3 ปีที่แล้ว

    Jeff is my favourite tech youtuber!

  • @johnpaulmanoza
    @johnpaulmanoza 7 ปีที่แล้ว +6

    Been waiting for this topic, glad this is all well put into a video tutorial. Since following some blog tutorial on the internet is a bit hard for beginners. 👍

    • @Fireship
      @Fireship  7 ปีที่แล้ว +1

      Thanks, I agree. There are a bunch of steps, but the it's pretty straight forward when you break it down.

  • @MrOnizukakira
    @MrOnizukakira 7 ปีที่แล้ว +5

    Thank you very much for your tutorials, I learn a lot from you every day !! please keep making great tutorials :D

    • @Fireship
      @Fireship  7 ปีที่แล้ว +2

      +Mazouzi Awesome! Let me know if there's anything you want to see.

  • @RAJATTHEPAGAL
    @RAJATTHEPAGAL 6 ปีที่แล้ว +3

    Your channel have some really great content... Thanks :-D

  • @AndreaLoIacono
    @AndreaLoIacono 7 ปีที่แล้ว +4

    I LOVE THIS CHANNEL !!!!!!!!!!!!!!!!!!!!!!!!!

  • @danielceballostejero4512
    @danielceballostejero4512 6 ปีที่แล้ว +5

    What plugin do you use to insert the code partials without copy/pasting it? It seems to me like a predefined sequence.

  • @MrJerczu
    @MrJerczu 7 ปีที่แล้ว +10

    Lighthouse is a part of devtools now in chrome so you don't really need that plugin anymore

    • @Fireship
      @Fireship  7 ปีที่แล้ว +5

      There's also the "application" tab on chrome dev tools that is useful for inspecting the manifest and debugging the service worker.

  • @chakree100
    @chakree100 6 ปีที่แล้ว +2

    can we make a service worker that can push alerts as notifications even while offline?

  • @ouyahama
    @ouyahama 7 ปีที่แล้ว +2

    @3:40 there is a small typo: 'wepack' => 'webpack'

    • @Fireship
      @Fireship  7 ปีที่แล้ว

      Good catch. I must have manually typed the scene. The correct command can be found in the description links.

  • @Fascinatingtapes
    @Fascinatingtapes 6 ปีที่แล้ว +1

    what a great tutorial with a special short hand explanation ,,,would you make a tutorial on how to use external jquey libraries in angular ,,for example ,calender jquery library,how to use it in angular, thanks!

  • @npe4130
    @npe4130 6 ปีที่แล้ว

    Good news... for Edge, it's possible to enable Service Workers with a flag since October 2017. For Safari, currently Service Workers are in Preview and Web App Manifests in development :)

  • @davidtheprogrammer
    @davidtheprogrammer 7 ปีที่แล้ว

    That music caught me off guard! lol

  • @mrbassocam
    @mrbassocam 6 ปีที่แล้ว

    works great for me, thanks a lot!!

  • @kingerszander5136
    @kingerszander5136 6 ปีที่แล้ว +1

    i need Firebase chat in angular 5?

  • @CooKeeChris
    @CooKeeChris 6 ปีที่แล้ว

    0:46 I don't think it will be supported by safari, because Firebase is from Google.

    • @Fireship
      @Fireship  6 ปีที่แล้ว

      It's not just a Firebase thing. PWAs already have experimental support in webkit (and ms edge) as of december 2017, so we should see full support soon :)

  • @ouyahama
    @ouyahama 7 ปีที่แล้ว

    how does this method compare to using `@angular/service-worker` package speratly from the old and forgotten --mobile flag of the CLI?

  • @hari92prasanth
    @hari92prasanth 7 ปีที่แล้ว

    I'm currently using angular cli gh-pages for deploying ,service worker showing errors pl help

  • @nikhilgoyal007
    @nikhilgoyal007 6 ปีที่แล้ว

    how does this method compare to ionic 3 please ? pros / cons .

  • @limpep
    @limpep 7 ปีที่แล้ว

    I think there is currently a limit of 2mb pre-project including app dependencies of the entire project.

    • @Fireship
      @Fireship  7 ปีที่แล้ว

      I'm not aware of a hard limit, but the initial content must load fast. Checkout the section "First load fast even on 3G" in the official checklist: developers.google.com/web/progressive-web-apps/checklist#baseline

  • @ouyahama
    @ouyahama 7 ปีที่แล้ว

    how can I make sw-precache register a service worker during the lunch of the CLI dev server using 'ng serve'?

    • @ouyahama
      @ouyahama 7 ปีที่แล้ว

      tested everything and it works perfectly in production however in development I could not understand where `ng serve` generates the deployed files locally so I can inform sw-precache to register the service worker there.

    • @Fireship
      @Fireship  7 ปีที่แล้ว

      I could be wrong, but I don't think its possible out of the box. What you can do is build in prod mode, then use something like the "http-server" package to serve the contents of /dist folder locally. github.com/indexzero/http-server

    • @ouyahama
      @ouyahama 7 ปีที่แล้ว

      thanks! will give it a try :)

  • @lorgiamarce2095
    @lorgiamarce2095 7 ปีที่แล้ว +2

    Hi.
    I would like to know where I can learn angular in a professional way on the internet or what other means I can use, what happens is that I am from Colombia, and here in my country there are no courses that can give me a good level of angular learning. thank you very much for your messages, they are very valuable for me .....

    • @Pranaytubes
      @Pranaytubes 7 ปีที่แล้ว +1

      Hello! For angular, one of the best courses: www.udemy.com/the-complete-angular-master-class/. For angular and firebase, you are already in the right place: angularfirebase.com

    • @lorgiamarce2095
      @lorgiamarce2095 7 ปีที่แล้ว

      thank you very much for your help.

  • @elgs1980
    @elgs1980 7 ปีที่แล้ว

    So why do we need it?

  • @learndeploy7341
    @learndeploy7341 7 ปีที่แล้ว

    How to apply this for a project which is under development?

    • @Fireship
      @Fireship  7 ปีที่แล้ว

      Look at the comments from Kawzaki Honda, he provides a couple tips for using the worker in development.

  • @Ram.kripaa
    @Ram.kripaa 6 ปีที่แล้ว +1

    This video is outdated now.Please post new video based on new angular(6/7) framework.

  • @markgoho
    @markgoho 7 ปีที่แล้ว

    Does this method work with lazy loaded modules?

    • @Fireship
      @Fireship  7 ปีที่แล้ว +1

      Yes. You can verify by looking at the service-worker.js cached files in the dist folder. You should see "**.chunk.js" files for lazy loaded modules.

  • @JNEST89
    @JNEST89 7 ปีที่แล้ว +12

    Man you explain really well, but you go way to fast,

  • @_Vaibs_
    @_Vaibs_ 6 ปีที่แล้ว

    whatsy New man?

  • @StijnHommes
    @StijnHommes 3 ปีที่แล้ว

    Behaving like a native app is not enough.
    It has to BE a native app.
    Trying to make a "web app" (aka website) look like a native app is MISLEADING.

  • @udaykumarmucharla
    @udaykumarmucharla 6 ปีที่แล้ว +3

    why u r running... can u explain it
    clearly

    • @pradeepkumarnm7127
      @pradeepkumarnm7127 5 ปีที่แล้ว

      I too felt initially.. but u can change the speed + u can find the notes in his description link. One advantage of fast is it's good for u to quickly review what u have gone through earlier

  • @nishanthsubramanya1931
    @nishanthsubramanya1931 6 ปีที่แล้ว +2

    Brother, how about taking it a pinch slower!! I know you target the mid and high end but your voice and onscreen flow is too high

    • @keymars1416
      @keymars1416 6 ปีที่แล้ว +1

      i appreciate the depth of your comment. keep up the good work.