Comments (3)
Hi, required inputs can only be read after the component is init (after ngOnInit()
). By invoking user
in the property initialization you're accessing a signal that hasn't been set yet.
In your case it looks like expired
should be a computed input.
from angular.
- this is very bad, can not use declarative programming
- computed signal dos not have
set
orupdate
function
from angular.
Nested Signals (like DeepSignal
from the signal Store) might me a good fit for you.
from angular.
Related Issues (20)
- Wrong url in app creation HOT 1
- Angular 17 with PWA fail always updating with "TOO MANY REDIRECTS" HOT 2
- Angular Universal does not generate the HTML whose data is fetched from an API. HOT 2
- slow server response time in dynamic routes when using Angular SSR HOT 8
- Photos are not available HOT 2
- React to input changes: signal effects vs ngOnChange HOT 5
- ngModel complains when used with @defer HOT 5
- Angular forms modifes form status when any form directives used HOT 1
- HttpTransferCache should allow caching of requests with auth headers HOT 1
- Provide `input` property to `options` of `createComponent` HOT 3
- Angular 17.3 ngOnInit running infinite loop with defer block HOT 12
- Calling markAllAsTouched() on parent form doesn't mark ControlContainer controls as touched HOT 1
- `yarn devtools:build:chrome` failed HOT 5
- Angular Update Guide lists no 'before' steps but has 'before' steps in update steps HOT 1
- typed provide HOT 1
- Dead link leads to 404 HOT 2
- Unique ID generation for component instances
- Version compatibility not updated / does not include recent versions HOT 3
- ngOnInit(): void breaks shipping.component.ts 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.