Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
Idiomatic Angular: standalone components, signals, RxJS patterns, DI, and enterprise structure. Use when writing, reviewing, or structuring Angular applications.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Modern Angular (v16+) has reinvented itself: standalone components, signals for fine-grained reactivity, and deferred views — while keeping its enterprise strengths (DI, RxJS, the CLI, strong conventions). Professional Angular means embracing the modern idioms (signals over unnecessary RxJS, standalone over NgModules for new code), structuring by feature with clear boundaries, and using the platform's opinions instead of fighting them.
The through-line: Angular rewards convention — learn its idioms deeply and the framework carries the architecture.
imports arrays; use NgModules only for legacy boundaries. Simpler mental model,
better tree-shaking, easier lazy loading.signal(), computed(), effect() — fine-grained, no
subscription management, automatic dependency tracking. Default choice for component state;
effect only for side effects (logging, syncing to external systems), never for deriving state
(that's computed).async pipe (or toSignal()) in
templates — manual .subscribe() in components is a leak waiting to happen.providedIn: 'root' services, injection
tokens for config/abstractions. Constructor injection (or inject()); services own logic,
components own presentation. Testability falls out naturally.@Input() in, @Output() out, OnPush change detection).
This split keeps templates testable and change detection cheap.OnPush — OnPush components update on input
reference changes, events, and async pipe emissions. Immutability (signal.update returning new
objects) makes OnPush correct and fast.ng new with standalone, strict TypeScript, and routing; ESLint +
Prettier; feature-based folder structure (features/orders/) with clear public APIs per feature.defer blocks for below-fold
content; route-level lazy loading; trackBy (or @for ... track) for lists; bundle budgets in
angular.json enforced in CI.Idiomatic snippets:
// Signal-based component state; computed derives; effect only for side effects
@Component({ standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, ... })
export class OrderListComponent {
private ordersService = inject(OrdersService);
filter = signal('');
orders = this.ordersService.orders; // signal from service
visible = computed(() =>
this.orders().filter(o => o.id.includes(this.filter()))
);
total = computed(() => this.visible().reduce((s, o) => s + o.total, 0));
}
// RxJS where streams live: typeahead search
results$ = this.term$.pipe(
debounceTime(300),
distinctUntilChanged(),
switchMap(term => this.api.search(term)),
catchError(() => of([]))
);
.subscribe() in components without takeUntilDestroyed
— leaks on every navigation. Async pipe or takeUntilDestroyed() always.debounceTime is
as wrong as using Subjects for a counter.effect(() => this.b.set(transform(this.a()))) — that's
computed. Effects are side-effect-only; misuse creates loops and confusion.this.list().push(x) mutates without notifying. Use
this.list.update(l => [...l, x]) — immutability makes reactivity correct.UtilService with 60 methods, or a shared module importing the
world. Services per domain; standalone imports kept minimal and explicit.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.
中文简介正在准备中。当前显示原文说明。
Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.
中文简介正在准备中。当前显示原文说明。
Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.
中文简介正在准备中。当前显示原文说明。
Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.
中文简介正在准备中。当前显示原文说明。
Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.
中文简介正在准备中。当前显示原文说明。