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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to leave comments in templates #28814
Comments
Shouldn"t this be a tsconfig option? |
Seemed specific to the template engine and felt right having it near templateUrl option, but angularCompilerOptions could also work |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
I think that it is possible to make some kind of white list, which comments should not be removed from the templates. |
This makes sense. We should review our comments strategy in templates and have 2 types of comments:
|
馃殌 feature request
Relevant Package
This feature request is for @angular/coreDescription
Comments are removed in the rendered angular view. We are using another framework alongside angular whose bindings are within the comments. Our whole code base is written using that framework and we cannot afford to stop development to completely migrate all our code to angular. Which is why we want to do it in small iteration.
Stackblitz sample: https://stackblitz.com/edit/angular-zhw3az?file=src%2Fapp%2Fapp.component.ts
Describe the solution you'd like
An option within the Component decorator to leave comments@component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ],
HTMLComments: true
})
Describe alternatives you've considered
The alternative would be to completely rewrite all our views changing those bindings.The text was updated successfully, but these errors were encountered: