-
Notifications
You must be signed in to change notification settings - Fork 209
Kendo directives without transclusions in 1.0.0 #285
Comments
Your example got lost for some reason, can you re-post it? I commented out the transclusion because it was generating the other bug (#90). I never understood why was it important, if you can explain I'll reconsider. |
Sorry my example was removed, now you should see it. <div id="collectionEditor">
<ul class="list-group ra-list-group" kendo-sortable k-options="options">
<div ng-transclude></div>
</ul>
</div> Transclusion will work if all previous directives enable transclusion. |
Transclusion is very important when you have content that needs to be wrapped by a directive. This is almost required for some of the Kendo directives, like the sortable one @olexme mentioned. Here is a plunker that we worked on a few weeks ago, that uses transclusion (using angular-kendo .6): http://plnkr.co/edit/g0UQWP?p=preview In the example, in order for the content within the <ul id="sortable" kendo-sortable k-options="sortableOptions">
<li class="sortable" ng-repeat="item in sortableValue.data">
{{item.name}}
</li>
</ul> Here is a version of the same plunker but using the latest v1.0.0 of angular-kendo: There appears to be another JS issue happening in that example, but certainly without transclusion, it will not function correctly. |
Thanks mholsen for example.
http://plnkr.co/edit/g78bVS9Hq1i2dhWSM4RI?p=preview
|
Thanks both for the explanations. I'll uncomment those lines, after I figure out how to mitigate issues like #90. |
I am not sure the problem that was being solved in #90 exists anymore. I forked the plunk that was created by @passelin in that issue (http://plnkr.co/edit/WP7SJA66Aqg9e8aNYteG?p=preview), and made the following updates:
I left angular-kendo alone (old version with transclude happening), and it does not appear to be destroying scope and the child dropdown works after the first panel is removed. http://plnkr.co/edit/iskQGD?p=preview Perhaps the "fix" by removing transclusion was not really needed, and the underlying issue was fixed in newer versions of angular (or Kendo). |
Transclusion in kendo is required and was widely used in custom directives with angular-kendo v0.6. In v1.0.0 transclusion part is commented.
Consider this directive template example, it's not working any more without kendo transclusions :
This is breaking change - please restore it.
The text was updated successfully, but these errors were encountered: