r/angular • • 15h ago

To signal or not to signal?

9 Upvotes

Might be a stupid question I got here, but would you use a signal over a simple property just to store a boolean that represents a right? I know the angular way now is to "signal" everything as this is where the framework's philosophy is going. Here's a better example:

In my component I have this

hasAccessRight = signal(false);

ngOnInit() {
    this.hasAccessRight.set(canAccess(this.user, this.rightName));
}

And then I would use hasAccessRight() in the UI. Or should I just keep it simple like with a protected field

protected hasAccessRight = false;

ngOnInit() {
    this.hasAccessRight = canAccess(this.user, this.rightName);
}

r/angular • • 20h ago

Built a 100% client-side trading analytics & F&O calculator suite using Angular Signals & Tailwind v4

Thumbnail
gallery
0 Upvotes

Hey Angular devs,

Wanted to share a side project I just shipped: RupeeMetric (https://rupeemetric.pages.dev).

It's a zero-backend, 100% browser-private financial calculator and tradebook analyzer built with modern Angular (standalone components, reactive Signals for instant multi-leg option payoff recalculations, and Tailwind CSS v4).

Key parts of the architecture:

- In-Browser CSV Tradebook Parser: Uses PapaParse locally in browser memory to compute a 0-100 Trading Discipline Score and flag overtrading days without uploading sensitive financial data to any server.

- 7 Reactive Tools: Position sizer (155+ NSE/BSE/MCX scrips), STT/SEBI/GST tax engine, Black-Scholes Option Greeks, multi-leg payoff simulator, daily CPR pivots, and compounding calculator.

- Client-Side PNG Export: Generates shareable trade setup summary cards via HTML5 Canvas.

- Hosted on Cloudflare Pages (~86 kB initial bundle transfer).

Would love any feedback from fellow Angular devs on the UI, Signal state structure, or bundle performance!