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

Dynamic ng-if fails (AngularJS)

2 Answers 103 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Jakob
Top achievements
Rank 1
Jakob asked on 25 Jun 2015, 02:26 PM

We are trying to switch the visibility of some NumericTextBoxes. 'ng-show' made some appearance effects but nothing useful. 'ng-if' seems to be more promising, but we experience other effects. Instead of disappearing nothing happens and instead of reappearing additional TextBoxes appear.

 

Please see this example: http://dojo.telerik.com/ELOlO

Press the button to see the problem.

Any hints?

Regards

Alex

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 26 Jun 2015, 03:23 PM

Hello,

the easiest way to solve that is to show/hide the container of the element - please let us know if this works for you.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jakob
Top achievements
Rank 1
answered on 30 Jun 2015, 09:14 AM

That works.

Thank you,
Alexander

 

Tags
NumericTextBox
Asked by
Jakob
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Jakob
Top achievements
Rank 1
Share this question
or