Angular源代码里字母Theta的含义

76 阅读1分钟

stackoverflow.com/questions/4…

请添加图片描述

The first thing you many notice is a lot of obscure method names, starting with the letter ɵ (Greek Theta) followed by 3 other English letters (e.g. ɵvid). The letter ɵ is used by the Angular team to indicate that some method is private to the framework and must not be called directly by the user, as the API for these method is not guaranteed to stay stable between Angular versions (in fact, I would say it’s almost guaranteed to break).请添加图片描述

  • ɵcmf: createNgModuleFactory
  • ɵmode: ModuleDef
  • ɵmpd: ModuleProviderDef

i0.ɵmpd(256, “a”, “a”, [])

256表示TypeValueProvider是个值类型。