I've recently started learning Angular. One thing I noticed in sites using Angular, is that the output HTML includes attributes such as ng-version
, _nghost-c0
and similar versions, and some other ones beginning with ng-
. I also notice some tag names like <landingpagecarousel>
. None of these are valid according to the w3c specifications (custom attributes must start off with data-
and custom tagnames must include a dash).
Is this simply the result of the developers not caring much about the validity of their document or is it actually not possible to output a valid HTML document using Angular?
When I built a little tic-tac-toe game myself as a first project, I figured the tagnames are completely in the hands of the developer (are they?) however I felt like most of the Angular-related attributes are just part of how the framework works, and I have no control over them. Is this the case?
So, is it possible to create a site with Angular (i.e. not one that's empty just for the sake of being valid) that outputs a valid HTML document?
An example of one of the sites I looked at: https://developer.db.com/