typescript #todoapp-角NGRX
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript #todoapp-角NGRX相关的知识,希望对你有一定的参考价值。
import Todo from '../../models/todo.model';
export interface TodoState extends Todo{
loading:boolean;
editable: boolean;
edited: boolean;
editing:boolean;
selected: boolean;
refreshing:boolean;
create: boolean;
error: boolean;
}
export const initializeTodoState = function() {
return {
loading: false,
editable: true,
edited: false,
editing:false,
selected: false,
refreshing:false,
create: true,
error: false,
}
}
export interface TodoListState{
todos: TodoState[];
loading: boolean;
pending: number;
}
export const intializeTodoListState = function(){
return {
loading: false,
pedning: 0,
}
}
以上是关于typescript #todoapp-角NGRX的主要内容,如果未能解决你的问题,请参考以下文章
html #todoapp-角NGRX
scss #todoapp-角NGRX
typescript 9#todoapp-angular-ngrx
typescript 8#todoapp-angular-ngrx
typescript 7#todoapp-angular-ngrx
typescript 6#todoapp-angular-ngrx