All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.molecules.navigation.primary.menu-item.menu-item.component.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'chutney-menu-item',
  templateUrl: './menu-item.component.html',
  styleUrls: ['./menu-item.component.scss']
})
export class MenuItemComponent implements OnInit {

    @Input() route: string;
    @Input() style: string;
    @Input() label: string;
    @Input() img_src: string;
    @Input() img_src_selected: string;
    @Input() icon_fa_class: string;
    @Output() clickEvent = new EventEmitter();

  constructor() { }

  ngOnInit() {
  }

  onClick(e) {
    e.stopPropagation();
    if (this.route == null) {
        this.clickEvent.emit();
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy