Project

General

Profile

1
/**
2
 * Created by stefania on 7/5/16.
3
 */
4

    
5
import {Component, ViewEncapsulation} from "@angular/core";
6

    
7
@Component({
8
  selector: 'top-menu',
9
  templateUrl: './topmenu.component.html',
10
  encapsulation: ViewEncapsulation.None
11
})
12

    
13
export class TopMenuComponent {
14

    
15
  constructor() {
16
  }
17

    
18
  onClick(id: string) {
19
    var el: HTMLElement = document.getElementById(id);
20
    el.classList.remove('uk-open');
21
  }
22

    
23
}
(2-2/2)