I have a problem with the integration of Mermaid since despite having checked documentation and other people asking for this library in stackoverflow and other forums the example they gave was to start such a project as well.
Component TS
import { Component, OnInit } from "@angular/core";
import * as mermaid from "mermaid";
@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.css"]
})
export class AppComponent implements OnInit {
title = "testMermaid";
public ngOnInit(): void {
mermaid.initialize({
theme: "forest"
});
}
}
HTML
<div class="mermaid">
graph TD A[Hard]
-->|Text| B(Round) B
--> C{Decision} C
-->|One| D[Result 1] C
-->|Two| E[Result 2]
</div>
I hope you can help me with this problem since I really don't understand why it doesn't start anything.