fullstackproltd / AspNetCoreSpa

Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
https://aspnetcorespa.fullstackpro.co.uk
MIT License
1.48k stars 465 forks source link

PWA Support #145

Closed layinka closed 6 years ago

layinka commented 7 years ago

I really appreciate the work being done on this project. It has made life easier for all of us,i will bet. I just checked out the netcore2 branch and i can see its already supporting angular 5 rc.

Being that PWA support is one o f the focus of angular 5, is there any chance this project can be adopted for a PWA project? Any pointers?

asadsahi commented 7 years ago

@layinka thanks for your kind words.

Hopefully in future more features will be added. Will add offline support soon. But things like SSR aren't as stable as they should be. any 3rd party library I am trying to implement such as ng-bootstrap or signalr client isn't working well with SSR. Stay tuned. :)

asadsahi commented 7 years ago

@layinka just to update on this one. I am working on part of PWA story to have some performance in this project and implement some initial performance and SEO concepts enhance in this project. So keep an eye on few changes soon.

layinka commented 7 years ago

That's great news. Thanks

Sent from my Windows Phone

-----Original Message----- From: "Asad Sahi" notifications@github.com Sent: ‎11/‎15/‎2017 5:42 PM To: "asadsahi/AspNetCoreSpa" AspNetCoreSpa@noreply.github.com Cc: "layinka" xcelsis02@gmail.com; "Mention" mention@noreply.github.com Subject: Re: [asadsahi/AspNetCoreSpa] PWA Support (#145)

@layinka just to update on this one. I am working on part of PWA story to have some performance in this project and implement some initial performance and SEO concepts enhance in this project. So keep an eye on few changes soon. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kmiskiewicz commented 7 years ago

@asadsahi @layinka maybe you will find this video interesting (or maybe you you have seen it already), it's about future of PWA in Angular https://www.youtube.com/watch?v=3ZZCCBjuAXU

asadsahi commented 7 years ago

@kmiskiewicz This guy is good, haven't seen this video, but he wrote few articles recently and gave a talk at angular connect that is upto date with few changes coming in angular-cli for pwa's. Looking forward to have cli baked in SPA services which will help with some pwa work in this project.

Selmirrrrr commented 6 years ago

Maybe this could help.

asadsahi commented 6 years ago

@R0xtar there is already WIP here. We'll leverage angular's cli's support for SW.

asadsahi commented 6 years ago

PWA support added in master now.

layinka commented 6 years ago

This is really great news. Thanks for all the great work

pvagnini commented 6 years ago

again i can confirm that if I change register.component,ts to this it works;

public register(model: IRegisterModel): void { this.dataService.post('http://localhost:5000/api/account/register', model) .subscribe(() => { this.router.navigate(['../registerconfirmation'], { relativeTo: this.route, queryParams: { emailConfirmed: true } }); }); }