Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.

Commit 1c455a7

Browse files
committed
update to as-syntax
1 parent 1322254 commit 1c455a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/book-details/book-details.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<GridLayout columns="*, *" rows="auto,auto">
1111
<StackLayout col="0" row="0" orientation="vertical">
1212
<Label text="Autoren"></Label>
13-
<Label *ngFor="let author of book.authors; let l=last" [text]="author + (!l ? ', ' : '')"></Label>
13+
<Label *ngFor="let author of book.authors; last as l" [text]="author + (!l ? ', ' : '')"></Label>
1414
</StackLayout>
1515
<StackLayout col="1" row="0" orientation="vertical">
1616
<Label text="ISBN"></Label>

app/book-list-item/book-list-item.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Label col="1" row="0" [text]="book.title" class="header"></Label>
44
<Label col="1" row="1" [text]="book.subtitle" class="description"></Label>
55
<StackLayout col="1" row="2" orientation="horizontal" class="metadata">
6-
<Label *ngFor="let author of book.authors; let l=last" [text]="author + (!l ? ', ' : '')"></Label>
6+
<Label *ngFor="let author of book.authors; last as l" [text]="author + (!l ? ', ' : '')"></Label>
77
</StackLayout>
88
<Label col="1" row="3" [text]="'ISBN ' + book.isbn" class="metadata"></Label>
99
</GridLayout>

app/home/home.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@angular/core';
55
template: `
66
<StackLayout>
77
<Label class="heading" text="Home"></Label>
8-
<Label text="Das ist der BookMonkey"></Label>
8+
<Label text="Das ist der BookMonkey mit Angular 4"></Label>
99
<Button nsRouterLink="../books" text="Buchliste ansehen" class="ui red button"></Button>
1010
</StackLayout>
1111
`

0 commit comments

Comments
 (0)