Closed Raven0us closed 4 years ago
This more just a preference here. The actual file generated should matter too much. But based on feedback from the Angular team and other devs, the .page.
notation is totally fine.
Since we make the mental notation that these are components tied to a route, we call them pages.
I don't think this is too much of an issue here, as the style guide is just that, a guide. It's not rules to be followed exactly.
@Raven0us here are some old discussions about these conventions:
Pages generated via
ionic generate page
are created following a different pattern than the one recommended by Angular's https://angular.io/guide/styleguide, which isfeature.type.ts
ionic generate page test
Expected output:Ionic output:
When using Refactor in IDEs like WebStorm, the entire component & related files get renamed to
test-page.component.extension
.I find this default behaviour confusing, perhaps a configurable template would be ideal.