AngularJS component with ng-if

2 posts, 1 answers
  1. Joey
    Joey avatar
    2 posts
    Member since:
    Apr 2015

    Posted 28 Feb 2016 Link to this post

    Angular newby here,

    I am having troubles with setting up the validator together with an ng-if directive. I figured out ng-if creates a new child scope but I am unable to access the parent validator property as described in the Kendo validator demo.

    I've created a dojo where the problem is simulated:

    Hoping for a solution.

    Thanks in advance.

    Joey Lemmens



  2. Answer
    Daniel avatar
    2231 posts

    Posted 02 Mar 2016 Link to this post

    Hello Joey,

    You could assign the reference to the parent scope by referencing an object(example).

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top