ion2-calendar icon indicating copy to clipboard operation
ion2-calendar copied to clipboard

Can't bind to 'options' since it isn't a known property of 'ion-calendar' ion2 calendar

Open CFDus opened this issue 6 years ago • 2 comments

Ionic version: (check one with "x") [ ] 2.x [ x ] 3.x [ ] 4.x

Ion2-calendar mode: (check one with "x") [ x ] components mode [ ] modal mode

I'm submitting a ... (check one with "x") [ ] bug report [ ] feature request [ x ] help me

Current behavior:

Template parse errors: Can't bind to 'options' since it isn't a a known property of 'ion-calendar'

Steps to reproduce:

I have a Popover, which creates a FilterPage, with the ion-calendar tag. FilterPage.module.ts imports CalendarModule

Related code:

insert short code snippets here
Start Time

Other information:

cli packages: (/usr/local/lib/node_modules)

   @ionic/cli-utils  : 2.0.0-rc.6
   ionic (Ionic CLI) : 4.0.0-rc.6

global packages:

   cordova (Cordova CLI) : 7.1.0

local packages:

   @ionic/app-scripts : 3.1.9
   Cordova Platforms  : none
   Ionic Framework    : ionic-angular 3.9.2

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v8.11.1
   npm               : 5.5.1
   OS                : Linux 4.9

Environment Variables:

   ANDROID_HOME : /opt/android-sdk
   HTTP_PROXY   : http://10.253.1.157:8080
   http_proxy   : http://10.253.1.157:8080
   HTTPS_PROXY  : http://10.253.1.157:8080
   https_proxy  : http://10.253.1.157:8080

CFDus avatar Aug 15 '18 15:08 CFDus

I had this problem, if you are using lazy loading, Add to yourpage.module.ts

import {CalendarModule} from "ion2-calendar";

and

  imports: [      IonicPageModule.forChild (OrdCalenderPage),      CalendarModule    ]

This should solve the problem :)

orelbutbul avatar Sep 29 '18 14:09 orelbutbul

wow,tks!!!

catx1726 avatar Jul 14 '20 12:07 catx1726