Commit 83a45cbb authored by lukas.burgey's avatar lukas.burgey

--wip--

parent efc4bc96
......@@ -16,18 +16,17 @@ import { Answers, DeploymentState } from '../../types/types.module';
})
export class QuestionnaireComponent implements OnInit {
sanitizer: any;
md: any;
public answers$ = <BehaviorSubject<Answers>> new BehaviorSubject(undefined);
constructor(
protected sanitizer: DomSanitizer,
public userService: UserService,
@Inject(MAT_DIALOG_DATA) public state$: Observable<DeploymentState>,
) {
// https://ndportmann.com/client-side-markdown-to-html/
const renderer = new Renderer();
this.md = marked.setOptions({ renderer });
this.sanitizer = DomSanitizer;
state$.subscribe(
(state: DeploymentState) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment