Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Fehler: Uncaught Error: Template parse errors: Only void and foreign elements can be self closed EditIcon

02.04.2021 (πŸ‘7045)

 

 

 

Fehlermeldung im Angular Chrome Browser

Uncaught Error: Template parse errors:

Only void and foreign elements can be self closed "EditIcon" ("<a href="/✍/{{ id }}">

  <Fab color="secondary" aria-label="edit" style={{ float: 'right' }}>

    [ERROR ->]<EditIcon />

  </Fab>

</a>

"): ng:///AppModule/ReadArticleComponent.html@7:4

Unexpected closing tag "Fab". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags ("

  <Fab color="secondary" aria-label="edit" style={{ float: 'right' }}>

    <EditIcon />

  [ERROR ->]</Fab>

</a>

Code in Angular.component.html

<a href="/✍/{{ id }}">

  <Fab color="secondary" aria-label="edit" style={{ float: 'right' }}>

    <EditIcon />

  </Fab>

</a>

LΓΆsung:

@Angular/material muss installiert werden mit ng add @angular/material --save