Tagged: codemix; warning; angular
- This topic has 6 replies, 4 voices, and was last updated 6 years, 5 months ago by Brian Fernandes.
-
AuthorPosts
-
Matt ComptonParticipantHow can I disable the warning for attributes in html files? All the angular attributes/directives are not in a lower case and it keeps me giving warnings for those, how can I disable it?
timwebbKeymasterFrom here:
https://github.com/Microsoft/vscode-htmlhint/issues/13If you open your settings.json in Preferences : CodeMix : Workspace Settings — then choose to open the “settings.json” editor, you can then paste in the snippet suggested.
Please let us know if this helps! I apologize that I don’t have time to check if this works but it is the same extension that provides HTML validation in CodeMix so I’m confident it will. Good luck and happy weekend!
Matt ComptonParticipantIt works. Thanks
Matt ComptonParticipantHi,
How can I disable “Component must have a template or templateUrl” error in the component.ts file? I am building my app on rails and angular6, so all the HTML and CSS is built through web pack, hence my @component doesn’t contain “templateUrl”. But if I don’t add templateUrl then my IDE is giving error above mentioned error, how can I disable it?
support-swapnaModeratorMatt,
Can you tell us if you’re doing something like this: https://github.com/angular/angular/issues/23553
Just trying to understand exactly how you’re developing your components and whether this is something new that Angular 6 adds (I couldn’d find this with a quick search).Unfortunately, at this point I can’t suggest a workaround that would prevent the validator from showing this message, but we’ll be looking into this issue.
- This reply was modified 6 years, 5 months ago by Brian Fernandes.
Matt ComptonParticipantHi,
Yes, I am using require to load the template and it gives me that error, however, my application runs fine. I just want to “ignore” that error.- This reply was modified 6 years, 5 months ago by Matt Compton.
Brian FernandesModeratorMatt,
I just wanted to add that this stems from the Angular language services not supporting
require
: https://github.com/angular/vscode-ng-language-service/issues/165We’ll look at what options are available to us.
-
AuthorPosts