Podcast Lookup

Code with CodingCat.dev: Angular 17, does SSR/SSG really work?

CodingCat.dev Podcast

  • June 30, 2024
  • 3 min
  • Season 1, episode 1
Episode page
About this episodehttps://codingcat.dev/podcast/cwcc-1-1-angular-17

https://codingcat.dev/podcast/cwcc-1-1-angular-17

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

Code with CodingCat.dev: Angular 17, does SSR/SSG really work?

00:00—
  1. It's it's pretty cool. I wonder can we try something real real quick before I have to roll? Yes, this is just from unsanitate. Let's can we add component testing for this and see if it works with the SSSSR stuff 'cause I don't know if it does. I don't know if I have that kind of time.

  2. It'll take like 2 minutes. OK, how do I do it? OK, go to install Cypress. Reshare my screen here. It should work. MPML Cypress MPM install at Cypress something? Yep. Just Cypress. Just. Cypress, OK. And then this should work with 17. I haven't tried this. This is my own sanity. I mean, I've I tried it before we released it, but I haven't tried it as a consumer yet.

  3. OK, Dan, just run MPX Cypress open. Oh, and you could skip the our magical thing. Yeah, just press continue. Yeah, it's oh. OK. And do component testing. Sorry, configure. Configure component testing text angular. All the dependencies are good. This means I did my job right. Did you did you add that?

  4. This is my PR yeah. So I I I want to make sure this, but I haven't tried the SSG part. So then press continue. This is just a overview of what got scaffolded and then you can launch it and then we can create just a super quick test for any one of these components. Do I? Just click this.

  5. Yeah, just click that. Yep, there's. A lot of warnings appearing. That's not good. And it's like, hey, we don't have any tests, so we have to go create one in your editor. Oh, OK. So then just go to like the Jordan component or one of the ones that we're pre rendering, I guess. And right next to that we need to create a new file.

  6. Yeah. OK. And Jordan dot component dot PSI dot TS. Who component? Cy All right. I just. Dot TS, dot TS. There you go. OK, now you can just do like, I guess I could do this too. Gosh darn it. I keep forgetting like I can actually. It's all right. Normally I trust me. Yeah. If I wasn't completely overtime, I'd be like, no, no, I'll do it. I like having a new dev Trez stuff out so that way like you can get feedback and be like, why do you guys do it that way instead of just like, oh, here's how you do it. Yeah, yeah, for sure.

  7. So we should just be able to do this. And now it picked it up. You can click on that test. And I'm not sure if this will work. It seems like it's working. I'm not sure once you like actually start hydrating things like if it would work or not, but that's the part I'm not sure about but.

  8. This. Is just my own sanity checks. This this this repo I will push and you can do whatever you want to. For sure. To get to a little further, add Cypress push and then Jordan. Thank you so much for dealing with all my my problems. I still got to figure out maybe I'll go use a ping dot GG or something to to get us in there but super frustrating that I can't can't have our chat on on the screen.

  9. I know.