Jose A Jose A -3 years ago 195
AngularJS Question

What is the name convention for interfaces in Angular 2?

Doesn't seem to be an explicit place with this information:

I have always named interface files as

and the interface as

Is that the way to go with Angular 2 and Typescript?

Thanks :)

Answer Source

According to

In general Angular2 should follow TypeScript naming conventions. See:

What does it say about 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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download