Project

General

Profile

1
import {Component, OnInit} from '@angular/core';
2

    
3
@Component ({
4
  selector: 'app-compatibility-monitor',
5
  templateUrl: 'compatibility-monitor.component.html'
6
})
7

    
8
export class CompatibilityMonitorComponent implements OnInit {
9

    
10
  tilesView: boolean = true;
11

    
12
  constructor() {}
13

    
14
  ngOnInit() {
15
    let body = document.getElementsByTagName('body')[0];
16
    body.classList.add("top_bar_active");   //add the class
17
    body.classList.remove("page_heading_active");
18
    body.classList.remove("landing");
19
    body.classList.add("dashboard");
20
  }
21

    
22
  changeView(view: string) {
23
    this.tilesView = (view == 'tiles');
24
  }
25
}
(6-6/17)