
AMP 39: Manfred Steyer on Modern Architectures with Angular Latest Innovations
Angular Master Podcast
00:00
How to Use Functional Services in Your Router Configuration
Functional services is just an umbrella term for using functions as services. You can of course do this with your own services but also the angle at the inside that you use this pattern. For instance if you think about the router and its guards. To amelip a guard was a service that implemented an interface which in the phase forced you into implementing a specific function or a method. The whole service was registered as a service it was provided and then the service or the token for it needed to be put into the router config. Now the functional guards you just define a function inside of your router configuration and that's it. It's really simple it's really straightforward. And we have the same
Play episode from 21:24
Transcript


