Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import { Component, ViewChild } from '@angular/core';
  2. import { IonicPage, NavController } from 'ionic-angular';
  3.  
  4. import { Calendar } from '@ionic-native/calendar';
  5. import { CalendarComponent } from "ap-angular2-fullcalendar";
  6.  
  7. @IonicPage()
  8. @Component({
  9. selector: 'page-place-calendar',
  10. templateUrl: 'place-calendar.html',
  11. })
  12. export class PlaceCalendarPage {
  13.  
  14. calendarOptions:Object = {
  15. height: 'parent'
  16. }
  17.  
  18. constructor(private calendar: Calendar, private navCtrl: NavController) {
  19.  
  20. }
  21.  
  22. @ViewChild(CalendarComponent) myCalendar: CalendarComponent;
  23.  
  24. changeCalendarView(view) {
  25. this.myCalendar.fullCalendar('changeView', view);
  26. }
  27.  
  28. onCalendarInit(event) {
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement