Angular rendered DOM html custom attributes
问题 I am new to frontend and i began using Angular. When I look to the final DOM i see code like this <style> .pane[_ngcontent-c0]~ .... } </style> <div _ngcontent-c0 class="pane" ... This is using CSS attribute selectors but my question is related with the custom attribute "_ngcontent-c0", in html5 there is a new feature with the name of "data custom attributes that are prefixed with (data-*) name. In this case the custom attribute is not using the data- syntax , this does not make the document