-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$compile documentation improvement #15093
Comments
I guess it is not 100% clear, but the following quotes from the docs are strong hints:
(It says "compiled"; doesn't mention anything about linking.)
Again not 100% clear, but since
It explicitly says What it meant to say (I guess) is: "which the clone will be linked to" I will make this small change, but if you feel there is any way to improve docs further, feel free to submit a PR (and be our hero 😄). Transclusion is one of the complex aspects fo directives (which in turn is one of the complex aspects of Angular), so... Yet we still love them both, because thay are amazingly powerful at the same time 😁 In any case, thx for bringing this to our attention, @djfd 👍 |
yeah, thank you, that is better! and you are right, there is all required information in the documentation for a careful readers )) But for a beginners (and "by diagonal" readers) like me it is important to get learning curve as much as possible short and smooth, so clear statements are certainly help. And not every one has English as a mother tongue. check this, just search for a 'this is compiled but not linked yet', it is in bold, as it is actually important. And it was an insight for me, to be honest )) |
Tbh, "transclusion with custom But maybe adding a similar comment in our example is not a bad idea anyway - PRs welcome if anyone feels like it |
thanks, it is too late to became a hero, I was born with SVN in my hands, so git learning is out of my scope )) |
… inside `cloneAttachFn` Fixes angular#15093
… inside `cloneAttachFn` Fixes angular#15093
… inside `cloneAttachFn` Fixes angular#15093
… inside `cloneAttachFn` Fixes angular#15093
… inside `cloneAttachFn` Fixes angular#15093
… inside `cloneAttachFn` Fixes #15093
… inside `cloneAttachFn` Fixes #15093
Hi,
could you pls add to a transclude function description an explicit statement that cloned element passed into cloneAttachFn is compiled but not yet linked (neither pre-, nor post-)?
(that is in practice we get a fresh clone of template)
It seems be not very clear, as least for me, from the current docs. Or am I wrong?
thanks
The text was updated successfully, but these errors were encountered: