projects.actions.ts
angular/examples/advanced/src/app/state/projects.actions.ts
// @ts-nocheck
import { createActionGroup, props } from '@ngrx/store';
import { Project } from './projects.models';
export const ProjectsActions = createActionGroup({
source: 'Projects',
events: {
'Load Requested': props<{ tenantId: string }>(),
'Load Succeeded': props<{ projects: Project[] }>(),
'Load Failed': props<{ error: unknown }>(),
'Create Requested': props<{ project: Project }>(),
'Create Succeeded': props<{ project: Project }>(),
},
});
相关文章
server.js
server.js — javascript source code from the angular learning materials (angular/comprehensive-demo/server/server.js).
阅读文章 →app.component.ts
app.component.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.component.ts).
阅读文章 →app.config.ts
app.config.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.config.ts).
阅读文章 →app.routes.ts
app.routes.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/app.routes.ts).
阅读文章 →auth.guard.ts
auth.guard.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/core/guards/auth.guard.ts).
阅读文章 →role.guard.ts
role.guard.ts — typescript source code from the angular learning materials (angular/comprehensive-demo/src/app/core/guards/role.guard.ts).
阅读文章 →