This is a migrated thread and some comments may be shown as answers.
Angular expression in title attribute
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 11 Oct 2017, 12:21 PM

Hi!

There is an issue with the numericTextBox title, that is showing on mouse hover. Here is the dojo.

I'll try to explain this dojo more detailed. In case of using ng-model, title of kendo-numeric-text-box still contains angular template: {{ hello }}. But in case of using k-ng-model title text is shown correctly as long as the model value isn't changing. After value was changed, title began to show angular template. 

I also added a kendo-drop-down-list element as an example that everything works fine with it. Also I would like to note, that everything was fine with kendo version 2016.2.607. Looks like these changes made title behavior not as expected.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 13 Oct 2017, 07:14 AM
Hello, Denis,

Thank you for the example and the details.

Please have in mind that this is expected as the templates are not evaluated before the widget initialization. I noticed that a custom directive is used, but the NumericTextBox is specific widget as it is rendering 2 input elements and the correct title is added to only one of them:

https://docs.telerik.com/kendo-ui/AngularJS/Troubleshooting/common-issues#angularjs-templates-are-not-evaluated-before-widget-initialization

I modify the example to set the title attribute to all of the inputs. It is still only for the k-ng-model, but this is the recommended binding approach:

http://dojo.telerik.com/UHexA/2

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.
Asked by
Denis
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or