mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 06:01:56 +00:00
Remove test code
This commit is contained in:
parent
11b004e3b7
commit
e0bdf1d9ed
@ -1,2 +1 @@
|
|||||||
<div [innerHtml]="this.markdown">
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,15 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { MarkdownService } from '../markdown.service';
|
import { MarkdownService } from '../markdown.service';
|
||||||
|
|
||||||
const mdText =
|
|
||||||
`# Showdown test
|
|
||||||
|
|
||||||
**bold**
|
|
||||||
|
|
||||||
_italic_
|
|
||||||
|
|
||||||
[link](https://avatao.com)
|
|
||||||
`;
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-logs',
|
selector: 'app-logs',
|
||||||
@ -17,9 +8,7 @@ _italic_
|
|||||||
styleUrls: ['./logs.component.scss']
|
styleUrls: ['./logs.component.scss']
|
||||||
})
|
})
|
||||||
export class LogsComponent implements OnInit {
|
export class LogsComponent implements OnInit {
|
||||||
markdown: string;
|
|
||||||
constructor(private markdownService: MarkdownService) {
|
constructor(private markdownService: MarkdownService) {
|
||||||
this.markdown = markdownService.convertToHtml(mdText);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user