Comments (3)
Would this be a significant improvement over:
@Component({
...
providers: [
{
provide: ID,
useFactory: () => inject(Cmp).id,
},
],
})
class Cmp {
readonly id = input.required<string>();
}
which works today?
from angular.
Note that additionally, it's possible for downstream components to inject Cmp
directly and have access to its input signals if desired.
from angular.
(going to close this as the existing featureset covers this use case pretty well without adding new complexity to declaring inputs)
from angular.
Related Issues (20)
- ReactiveForm nested 3 layer will cause input to freeze / jumpout ( Reproduce StackBlitz included ) HOT 2
- Code snippets: issue with string highlight HOT 1
- core.mjs:6531 ERROR TypeError: Cannot read properties of undefined (reading 'ɵcmp') HOT 17
- Angular 17.3 input signal not working with customComponents HOT 1
- Error after translate angular.dev for portuguese.
- Issue in scrolling in menu and sub menu in sidebar in docs
- Clarify how to test for errors in effects HOT 2
- `model()` should support a narrower output type HOT 6
- DevTools section not up-to-date
- [NgOptimizedImage] Revert Assertions Against Blob and Data URL's or Document the Rationale
- transparent text on chrome 109 HOT 1
- Links in angular DevTools Overview page is not working
- Feat(adev): faster initial loading + iPad availability of the playground
- compiler: Parser interpolation assertion failure after the introduction of new control flow @ symbol syntax HOT 2
- Angular Update Guide zone.js
- routerLink in child not working - due to defer Block - getting recursion error HOT 16
- Broken images in service worker docs
- Scope of template local variables in Angular @if() block seems wrong HOT 2
- ngsp is not working properly with control flow syntax HOT 1
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.