10000 Put back in the local variable of 'story' as trying to use the servic… · benny568/ca@eb6cf08 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Put back in the local variable of 'story' as trying to use the servic…
Browse files Browse the repository at this point in the history
…e directly was causing errors.
  • Loading branch information
benny568 committed Dec 3, 2020
1 parent d9953d3 commit eb6cf08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/news-story-view/news-story-view.component.tns.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ScrollView orientation="vertical">
<GridLayout columns="*" rows="auto,auto,auto,auto">
<Label row="0" col="0" text="{{news$.currentStory.title}}" class="news-title" textWrap="true"></Label>
<Image row="1" col="0" src="{{serverUrl}}{{ news$.currentStory.image }}" stretch="aspectFill"></Image>
<Label row="2" col="0" text="{{news$.currentStory.description}}" class="news-description" textWrap="true"></Label>
<Label row="3" col="0" text="{{news$.currentStory.story}}" class="news-story" textWrap="true"></Label>
<Label row="0" col="0" text="{{story.title}}" class="news-title" textWrap="true"></Label>
<Image row="1" col="0" src="{{serverUrl}}{{ story.image }}" stretch="aspectFill"></Image>
<Label row="2" col="0" text="{{story.description}}" class="news-description" textWrap="true"></Label>
<Label row="3" col="0" text="{{story.story}}" class="news-story" textWrap="true"></Label>
89A7 </GridLayout>>
</ScrollView>
1 change: 1 addition & 0 deletions src/app/news-story-view/news-story-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ export class NewsStoryViewComponent {
private com$: CommonService ) {
this.lg$.setLogHdr(this.logdepth, this.componentName);
this.serverUrl = this.com$.getHome();
this.story = this.news$.currentStory;
}
}

0 comments on commit eb6cf08

Please sign in to comment.
0