Skip to content

Instantly share code, notes, and snippets.

View k7moorthi's full-sized avatar
🎯
Focusing

Kesavamoorthi Subramanian k7moorthi

🎯
Focusing
View GitHub Profile
@istupakov
istupakov / markdown.component.ts
Created June 7, 2017 16:38
Angular 4 Markdown Component with Router Navigation.
import { Component, Input, ViewChild, AfterViewInit, ElementRef } from '@angular/core';
import { Router } from '@angular/router';
import { markdown } from 'markdown';
@Component({
selector: 'markdown',
template: `<div [innerHtml]="html" #root></div>`
})
export class MarkdownComponent implements AfterViewInit {
@ViewChild('root') root: ElementRef;