-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate html code from typescript file #20
Comments
Could you explain in more detail how this makes it easier to find bugs? I think it's more easily maintainable to leave HTML in the typescript file for small templates because then you only have one file to work with when making changes. |
Also, adding this to the planet alpha project. Please add all issues to this project, thanks! |
@paulbert we were moving html files to .html files sho that the comonents ts will look more clean, but if there are few lines of html codes like tables and fetchig data on tables, or creating buttons we can use components ts but for longer files like creating multiple templates and creating multiples forms etc. it is easy to use .html |
@razu9861 @nirojdyola I think we should keep the HTML and SCSS in the At that length the HTML/SCSS still doesn't obscure the JavaScript, and we can keep a flatter folder structure with fewer files. An example of what I'd call a good case is the If that sounds good, then the one file that we should change is the |
Closing this as most, if not all, files follow the style guide. |
Make a separate html file for each component. Don;t include the html code in typescript file . It is just for structure maintaining so that easy to find the bug .
The text was updated successfully, but these errors were encountered: