Comments (8)
@Harpush is the
setInput
available automatically when using@ContentChildren
? I've only used it with dynamic components and still am not clear if it's currently available?
No it isn't. The issue I linked suggest adding it to injection of host component from directive. This issue seems half way similar as it can be solved if content child could get not the component instance but the component ref instead.
from angular.
@RobbyRabbitman just note that SIGNAL
isn't public API.
from angular.
One can say it is half way related to #47398
As injecting the component ref of the projected component (in this case with content child) would allow setInput usage
from angular.
@Harpush is the setInput
available automatically when using @ContentChildren
? I've only used it with dynamic components and still am not clear if it's currently available?
from angular.
Although setInput
seems pretty broadly typed, which might make sense with a ComponentRef but it would need to be narrower to be most useful.
from angular.
Although
setInput
seems pretty broadly typed, which might make sense with a ComponentRef but it would need to be narrower to be most useful.
There is an open issue for better setInput types too
from angular.
Would the componentRef
still include a reference to the component class to be able to access other methods on the class that aren't inputs?
from angular.
I had a similar situation, which was solved by unwrapping the Signal Input with the SIGNAL symbol and use setSignalValueFn (or something like that... typing this comment from mobile). I don't know if that's intended, but it worked :D
from angular.
Related Issues (20)
- There's no explanation in the Angular Docs on how to register a different locale. HOT 1
- Set Signal within Image onload event fails with NG0600 error HOT 3
- Content projection with nested IF does not work HOT 1
- Fallback content throws with multiple components v18.x
- Add support for using functions as pipes HOT 6
- Bug in @placeholder block causing delay in server-side rendering
- can't get the images to show HOT 1
- The update.angular.io does not show how to update angular material although the checkbox is checked HOT 1
- Angular's web components not working inside AngularJS structural directives HOT 2
- Missing built-in Pipes API page HOT 1
- Differences in change detection between components using @for vs *ngFor HOT 1
- NgZoneSchedulingMode not exported HOT 1
- Page Not Found HOT 1
- Functions are missing from localForage after updating Angular to latest version HOT 2
- "updateOn: 'blur'" does not work in formBuilder/formControl HOT 11
- App-shell docs are out-of-date
- https://angular.dev/guide/security not found HOT 2
- Destroy component itself HOT 5
- Image lazy loading doesn't work in SSR when using ngTemplateOutlet and disabled hydration
- @angular/compiler `parseTemplate` fn does not properly parse `HTML` string element text content containing `@` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.