This is a migrated thread and some comments may be shown as answers.

DatePicker - Unexpected token {

3 Answers 163 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Salim
Top achievements
Rank 1
Salim asked on 12 Oct 2017, 12:19 PM
Please help: we are getting unexpected token { when we use k-ng-model

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Oct 2017, 06:02 AM
Hello, Salim,

I made an example of the DatePicker with k-ng-model and it is working as expected without the mentioned issue:

http://dojo.telerik.com/Eqema

Please modify the provided code to replicate the real scenario with the error and we will gladly assist.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Salim
Top achievements
Rank 1
answered on 16 Oct 2017, 06:19 AM

Hi Stefan,

We are using it inside a directive called DatePicker inside another directive called FormView. Could this be the problem? Because if we are using only the directive DatePicker, we do not get the problem, but when it is being used inside the other directive, then we are getting this bug.

Thank you in advance

0
Stefan
Telerik team
answered on 16 Oct 2017, 12:21 PM
Hello, Salim,

Indeed, the issue could be caused by the custom directive.

I made an example where the DatePicker is inside a custom directive and it is still working as expected.

https://dojo.telerik.com/IzOqE

If an example reproducing the issue is provided, we will gladly investigate what may be causing the issue.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Salim
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Salim
Top achievements
Rank 1
Share this question
or