Skip to content

Instantly share code, notes, and snippets.

@zephenryus
Last active October 10, 2018 19:32
Show Gist options
  • Save zephenryus/6bd4c6dc19a55b6aafc6175932e4409d to your computer and use it in GitHub Desktop.
Save zephenryus/6bd4c6dc19a55b6aafc6175932e4409d to your computer and use it in GitHub Desktop.
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-dropdown',
templateUrl: './dropdown.component.html'
})
export class DropdownComponent {
@Input() title = '';
@Input() align = 'left';
isOpen = false;
toggleOpen() {
this.isOpen = !this.isOpen;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment