Is there a better way than using singletons?

前端 未结 0 1843
醉梦人生
醉梦人生 2021-01-15 20:13

In my typescript I\'ve created a class that reads settings from local storage.

In each, needed, component I typically have:

const settings = new Settin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题