What is a naming convention for interfaces in Angular 2?

This does not seem to be an obvious place with this information:

I always called the interface files as IMyInterfaceName.extension, and the interface - IMyInterface.

Is this the way to Angular 2 and Typescript?

Thank:)

+4
source share
1 answer

According to NAMING.md .

Typically, Angular2 should follow TypeScript naming conventions. See: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines

What does he say about interfaces?

Interfaces:

,
I .

+10

All Articles