Skip to content

Instantly share code, notes, and snippets.

@Seanmclem
Created June 11, 2018 00:35
Show Gist options
  • Save Seanmclem/9f23a928fcffb898c6c72b1a303345ba to your computer and use it in GitHub Desktop.
Save Seanmclem/9f23a928fcffb898c6c72b1a303345ba to your computer and use it in GitHub Desktop.
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
title = 'app';
menuOpen: boolean = false;
constructor() { }
ngOnInit() {}
toogleMenu(){
this.menuOpen = !this.menuOpen;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment