Project

General

Profile

« Previous | Next » 

Revision 58904

Working on the new version of the oso - almost done with tha mobile version of the pages

View differences:

top-menu.component.ts
1
import { Component, DoCheck, OnInit, ViewEncapsulation } from '@angular/core';
1
import { Component } from '@angular/core';
2
import {Router} from '@angular/router';
2 3

  
3 4
@Component({
4 5
  selector: 'app-top-menu',
5 6
  templateUrl: './top-menu.component.html',
6
  // styleUrls: ['./top-menu.component.css'],
7
  encapsulation: ViewEncapsulation.None
8 7
})
9 8

  
10 9
export class TopmenuComponent {
10

  
11
  constructor(private router: Router) {
12
  }
13

  
14
  isHomeRoute() {
15
    return (this.router.url === '/home');
16
  }
11 17
}

Also available in: Unified diff