Angular的大小写风格规范
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                Angular的大小写风格规范
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                官網地址:https://angular.io/guide/glossary
Case types
- camelCase: Symbols, properties, methods, pipe names, non-component directive selectors, constants. Standard or lower camel case uses lowercase on the first letter of the item. For example, “selectedHero”. 首字母必須小寫。
參考下圖高亮的例子:
- UpperCamelCase (or PascalCase): Class names, including classes that define components, interfaces, NgModules, directives, and pipes, Upper camel case uses uppercase on the first letter of the item. For example, “HeroListComponent”.
參考下圖高亮的例子:
- dash-case (or “kebab-case”): 用于定義文件名,以及selector:
-  underscore_case (or “snake_case”): 例如"convert_link_mode". 在Angular中不常用。 
-  UPPER_UNDERSCORE_CASE (or UPPER_SNAKE_CASE, or SCREAMING_SNAKE_CASE): 用于定義常量。 
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
 
總結
以上是生活随笔為你收集整理的Angular的大小写风格规范的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 链路聚合的三种方式分别是什么(华三H3C
- 下一篇: f值怎么计算(怎么计算$\frac{1)
