DatePicker - Unexpected token {

4 posts, 0 answers
  1. Salim
    Salim avatar
    63 posts
    Member since:
    Jun 2016

    Posted 12 Oct Link to this post

    Please help: we are getting unexpected token { when we use k-ng-model
  2. Stefan
    Admin
    Stefan avatar
    1394 posts

    Posted 16 Oct Link to this post

    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.
  3. Salim
    Salim avatar
    63 posts
    Member since:
    Jun 2016

    Posted 16 Oct Link to this post

    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

  4. Stefan
    Admin
    Stefan avatar
    1394 posts

    Posted 16 Oct Link to this post

    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.
Back to Top