Skip to content

Instantly share code, notes, and snippets.

@venkateshwarv
Created February 18, 2017 20:30
Show Gist options
  • Save venkateshwarv/ffa92c0d5ea82efc07f591bc9e80df75 to your computer and use it in GitHub Desktop.
Save venkateshwarv/ffa92c0d5ea82efc07f591bc9e80df75 to your computer and use it in GitHub Desktop.
import {
Component,
OnInit,
ViewEncapsulation,
Attribute
} from '@angular/core';
import {
MdMenu,
MenuPositionX,
MenuPositionY,
transformMenu,
fadeInItems
} from '@angular/material';
@Component({
selector: 'cc-md-menu',
templateUrl: './md-menu.component.html',
host: { 'role': 'menu'},
encapsulation: ViewEncapsulation.None,
styleUrls: ['./md-menu.component.scss'],
animations: [
transformMenu,
fadeInItems
],
exportAs: 'mdMenu'
})
export class MdMenuComponent extends MdMenu implements OnInit {
constructor(
@Attribute('x-position') _posX : MenuPositionX,
@Attribute('y-position') _posY : MenuPositionY,
) {
super(_posX, _posY);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment