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

AngularJS component with ng-if

1 Answer 89 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Joey
Top achievements
Rank 1
Joey asked on 28 Feb 2016, 06:59 PM

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: http://dojo.telerik.com/AyIzo/4

Hoping for a solution.

Thanks in advance.

Joey Lemmens

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 02 Mar 2016, 09:50 AM
Hello Joey,

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

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Validation
Asked by
Joey
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or