@@ -2,20 +2,20 @@ <h3>Author #{{ author?.id }}, with books and photos</h3>
22< demo-resource-info [resource] ="author "> </ demo-resource-info >
33<!-- <pre>authors.get('{{ author?.id }}', {{ '{' }} include: ['books', 'photos'] {{ '}' }});</pre> -->
44< ul >
5- < li > Name: < strong > {{ author?.attributes.name }}</ strong > </ li >
6- < li > Date of birth: < strong > {{ author?.attributes.date_of_birth | date }}</ strong > </ li >
7- < li > Date of dead: < strong > {{ author?.attributes.date_of_death | date }}</ strong > </ li >
5+ < li > Name: < strong > {{ author?.attributes.name }}</ strong > </ li >
6+ < li > Date of birth: < strong > {{ author?.attributes.date_of_birth | date }}</ strong > </ li >
7+ < li > Date of dead: < strong > {{ author?.attributes.date_of_death | date }}</ strong > </ li >
88</ ul >
99< p >
10- < button (click) ="newAuthor() "> New author</ button >
11- < button (click) ="updateAuthor() "> Update author</ button >
12- < button (click) ="removeRelationship() "> Remove relationship</ button >
10+ < button (click) ="newAuthor() "> New author</ button >
11+ < button (click) ="updateAuthor() "> Update author</ button >
12+ < button (click) ="removeRelationship() "> Remove relationship</ button >
1313</ p >
1414
1515< h4 > Photos</ h4 >
1616< demo-collection-info [collection] ="author?.relationships.photos "> </ demo-collection-info >
1717@if (author?.relationships.photos.data.length === 0) {
18- < span > This author don't have any photo :(</ span >
18+ < span > This author don't have any photo :(</ span >
1919}
2020@if (author?.relationships.photos.builded) {
2121 < span >
@@ -54,5 +54,5 @@ <h4>Books</h4>
5454}
5555
5656< p >
57- < a routerLink ="/authors "> Volver</ a >
57+ < a routerLink ="/authors "> Volver</ a >
5858</ p >
0 commit comments