cordova-template-ngx-onsenui
Version:
Cordova template with Onsen UI and Angular
31 lines (24 loc) • 481 B
text/typescript
import { Component, OnInit } from '@angular/core';
import { MenuService } from '../../services';
({
selector: 'ons-page[side]',
templateUrl: './side.component.html',
styleUrls: ['./side.component.css']
})
export class SideComponent implements OnInit {
/**
* Constructor
*/
constructor(private menuService: MenuService) { }
/**
* Initialize
*/
ngOnInit() {
}
/**
* Open menu
*/
closeMenu() {
this.menuService.close();
}
}