Last change
on this file since a5799e3 was 822c59d, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
337 bytes
|
Rev | Line | |
---|
[822c59d] | 1 | import { Component } from '@angular/core';
|
---|
| 2 |
|
---|
| 3 | @Component({
|
---|
| 4 | selector: 'app-nav-menu',
|
---|
| 5 | templateUrl: './nav-menu.component.html',
|
---|
| 6 | styleUrls: ['./nav-menu.component.css']
|
---|
| 7 | })
|
---|
| 8 | export class NavMenuComponent {
|
---|
| 9 | isExpanded = false;
|
---|
| 10 |
|
---|
| 11 | collapse() {
|
---|
| 12 | this.isExpanded = false;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | toggle() {
|
---|
| 16 | this.isExpanded = !this.isExpanded;
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.