Skip to content

Commit

Permalink
fix: fix manual behavior error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 3, 2020
1 parent a53bafc commit b94ce32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/presentation/manual/manual.component.html
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>
11 changes: 7 additions & 4 deletions src/app/presentation/manual/manual.component.ts
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 {}
}

0 comments on commit b94ce32

Please sign in to comment.