-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix manual behavior error issue
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<component-markdown-render [src]="'assets/docs/manual.md'" showToc="true"></component-markdown-render> | ||
<component-markdown-render [data]="data" showToc="true"></component-markdown-render> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import * as mdData from 'raw-loader!../../../assets/docs/practise.md'; | ||
import { Title } from '@angular/platform-browser'; | ||
|
||
@Component({ | ||
selector: 'app-manual', | ||
templateUrl: './manual.component.html', | ||
styleUrls: ['./manual.component.scss'] | ||
styleUrls: ['./manual.component.scss'], | ||
}) | ||
export class ManualComponent implements OnInit { | ||
data = mdData.default; | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
constructor(title: Title) { | ||
title.setTitle('DevOps 知识平台 Ledge - 操作手册'); | ||
} | ||
|
||
ngOnInit(): void {} | ||
} |