These are chat archives for angular/angular-2-ionic-2

6th
Mar 2017
JayaniSumudini
@JayaniSumudini
Mar 06 2017 09:24
I'm a new guy to the angular2. I used ng2-datetime-picker and I want to closed it when I clicked on input box.I tried it by developing my code using various types.Please help me
Nishanth Mane
@ngmgit
Mar 06 2017 15:24
@rhhhhl yes you can make use of "ngClass" and apply class based on condition and make your css changes. Thats one way to do it
@jogamod you can make use of declarations.d.ts to declare your module and bypass ts compile error. But if its a run time error in browser then you need to make sure it is loaded in the browser correctly, check the order of including them in your index.html or import statements.
Nishanth Mane
@ngmgit
Mar 06 2017 15:40
@JayaniSumudini Can you please be more clear on the context. The library already has a 'close-on-select' binding which is what you might be looking for. Also you can get the directive instance using # operator and manually trigger the hideDatePicker() function.