import { Component , OnInit , ViewEncapsulation } from '@angular/core' ; import { ActivatedRoute , Router , ROUTES } from '@angular/router' ; declare var ng ; @ Component ( { selector : 'app-blog' , templateUrl : './blog.component.html' , styleUrls : [ './blog.component.css' ] , preserveWhitespaces : true , encapsulation : ViewEncapsulation . Emulated , } ) export class BlogComponent implements OnInit { ngOnInit ( ) { } constructor ( private router , private route ) { } }