angularjs – Angular 2中接口的名称约定是什么?

前端之家收集整理的这篇文章主要介绍了angularjs – Angular 2中接口的名称约定是什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > Typescript style guide for interfaces                                    4个
似乎没有这个信息的明确位置:

我总是将接口文件命名为IMyInterfaceName.extension,接口命名为IMyInterface.

这是Angular 2和Typescript的方法吗?

谢谢 :)

解决方法

根据 NAMING.md.

In general Angular2 should follow TypeScript naming conventions. See: 07001

它对接口有什么看法?

Interfaces:

Follow the same rules as Classes
Should not have I or Interface in the name or any other way of identifying it as an interface.

猜你在找的Angularjs相关文章