You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we have to name all components TS files component.ts and all components HB template files template.hbs ?
This is not practical when searching for the source file of a given component in IDEs... It would be more practical if the files were named like this : MyComponent.ts and MyComponent.hbs, under a MyComponent folder.
Otherwise with the current recommandation(?) you end up with N files all named component.ts/template.hbs....
The text was updated successfully, but these errors were encountered:
@loicraux yes, naming needs to go as indicated in the docs. Naming approaches were discussed and debated fairly thoroughly as part of the original file layout discussion here: emberjs/rfcs#143
It is possible to override and alter the resolver to get custom behavior, but that might lead to other difficulties down the road, so I generally don't recommend it ... 😀
Do we have to name all components TS files
component.ts
and all components HB template filestemplate.hbs
?This is not practical when searching for the source file of a given component in IDEs... It would be more practical if the files were named like this :
MyComponent.ts
andMyComponent.hbs
, under aMyComponent
folder.Otherwise with the current recommandation(?) you end up with N files all named
component.ts/template.hbs
....The text was updated successfully, but these errors were encountered: