Skip to content

@angular/elements: add support for programmatic access to content projection #24509

@kukjevov

Description

@kukjevov

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

I would like to have some way how to do "templating" in custom elements and processing html content or elements defined as ContentChild or ContentChildren for Component defined as custom element. For example i have grid component that gathers metadata from its content. I would like to convert it to custom elements. Another possibility is i would like to have "custom template" for my component.

Expected behavior

I dont know how is this done in custom elements but i think it is possible somehow. I would like to have possibility to work with templates and ContentChild, ContentChildren same way as it is used in Angular.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Angular version: 6.0.3


Browser: All
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 9.4.0
- Platform:  Windows

Others:

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: elementsIssues related to Angular ElementsfeatureLabel used to distinguish feature request from other issuesfreq2: medium

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions