ɵ (Theta-like) symbol in Angular 2+ source code

让人想犯罪 __ 提交于 2019-12-04 00:16:39

So now I wonder why Angular team decided to use it? And what does it mean?

Yes, it marks methods as internal/private. Here is the quote from the article that was written by Uri Shaked who got this information from the Angular core team members:

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!