Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

How do you tell if an optional multi transclude property has been set? #13426

Closed
waeljammal opened this issue Dec 1, 2015 · 3 comments
Closed

Comments

@waeljammal
Copy link

Basically I can not find a way to check if an optional transclude was supplied, I want to show hide the parent based on the transclude being set or not.

If there is no way is it possible to get this added? It is a useful feature to along side optional transclude.

Thanks

@petebacondarwin
Copy link
Contributor

This is something that @PascalPrecht was asking for too, I think...

@petebacondarwin petebacondarwin added this to the 1.5.0-rc.0 milestone Dec 2, 2015
@petebacondarwin
Copy link
Contributor

A benefit of this would be that we could provide default content in ngTransclude for optional transclusion slots.

petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 2, 2015
…nction

Unfilled optional slots will exist as properties of `$$slots` but have a value of `null`.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 2, 2015
…ional slot

Previously the contents of the `ngTransclude` element would always be emptied,
even if there was no transclusion to replace it.
Now, optional slots that have not been filled with content will not cause
the `ngTransclude` contents to be emptied.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 2, 2015
…nction

Unfilled optional slots will exist as properties of `$$slots` but have a value of `null`.

Closes angular#13426
@petebacondarwin
Copy link
Contributor

Here is a PR: #13431

petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 2, 2015
…ction

Unfilled optional slots will exist as properties of `$slots` but have a value of `null`.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 2, 2015
…ional slot

Previously the contents of the `ngTransclude` element would always be emptied,
even if there was no transclusion to replace it.
Now, optional slots that have not been filled with content will not cause
the `ngTransclude` contents to be emptied.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 4, 2015
…ction

Unfilled optional slots will exist as properties of `$slots` but have a value of `null`.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 4, 2015
…ional slot

Previously the contents of the `ngTransclude` element would always be emptied,
even if there was no transclusion to replace it.
Now, optional slots that have not been filled with content will not cause
the `ngTransclude` contents to be emptied.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 4, 2015
…ction

Unfilled optional slots will exist as properties of `$slots` but have a value of `null`.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 4, 2015
…ional slot

Previously the contents of the `ngTransclude` element would always be emptied,
even if there was no transclusion to replace it.
Now, optional slots that have not been filled with content will not cause
the `ngTransclude` contents to be emptied.

Closes angular#13426
petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Dec 4, 2015
…ional slot

Previously the contents of the `ngTransclude` element would always be emptied,
even if there was no transclusion to replace it.
Now, optional slots that have not been filled with content will not cause
the `ngTransclude` contents to be emptied.

Closes angular#13426
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants