
Proxy Use Case : Design Patterns in TypeScript
Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=4CUEtE2uYLY
Design Patterns In TypeScript (book)
https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6
Documentation : https://sbcode.net/typescript/proxy/#proxy-use-case
In this example, I dynamically change the class of an object. So, I am essentially using an object as a proxy to other classes.
Every time the tell_me_the_future() method is called; it will randomly change the object to use a different class.
The object PROTEUS will then use the same static attributes and class methods of the new class instead.
#proxyPattern
#typescriptProxy
#proxyPatternTypescript
Other Videos By SBCODE
Tags:
Design Patterns In TypeScript
TypeScript
Design Patterns
proxy
proxy pattern