src/app/shared/models/todo.model.ts
The todo class
See TodoStore for service using it
Properties |
|
Methods |
|
Accessors |
constructor(title: string)
|
||||||
Defined in src/app/shared/models/todo.model.ts:49
|
||||||
Parameters :
|
Private _title |
Type : string
|
Defined in src/app/shared/models/todo.model.ts:39
|
Title |
Private #newprivateproperty |
Type : boolean
|
Default value : false
|
Defined in src/app/shared/models/todo.model.ts:30
|
Another private property |
completed |
Type : boolean
|
Defined in src/app/shared/models/todo.model.ts:14
|
Completed status |
dir |
Type : Direction
|
Default value : Direction.Left
|
Defined in src/app/shared/models/todo.model.ts:25
|
editing |
Type : boolean
|
Defined in src/app/shared/models/todo.model.ts:18
|
Editing status |
oneProperty |
Type : superString
|
Defined in src/app/shared/models/todo.model.ts:23
|
Just for Compodoc feature demo |
Private #clicked |
#clicked()
|
Defined in src/app/shared/models/todo.model.ts:32
|
Returns :
void
|
Static classMethod |
classMethod()
|
Defined in src/app/shared/models/todo.model.ts:47
|
Returns :
string
|
fakeMethod |
fakeMethod()
|
Defined in src/app/shared/models/todo.model.ts:60
|
fakeMethod !!
Returns :
boolean
|
title | ||||||
gettitle()
|
||||||
Defined in src/app/shared/models/todo.model.ts:40
|
||||||
settitle(value: string)
|
||||||
Defined in src/app/shared/models/todo.model.ts:43
|
||||||
Parameters :
Returns :
void
|
import { superString } from '../interfaces/interfaces';
import { Direction } from '../enums/enum';
/**
* The todo class
*
* See {@link TodoStore} for service using it
*/
export class Todo {
/**
* Completed status
*/
completed: boolean;
/**
* Editing status
*/
editing: boolean;
/**
* Just for Compodoc feature demo
*/
oneProperty: superString;
dir: Direction = Direction.Left;
/**
* Another private property
*/
#newprivateproperty: boolean = false;
#clicked() {
this.editing = true;
}
/**
* Title
*/
private _title: string;
get title() {
return this._title;
}
set title(value: string) {
this._title = value.trim();
}
static classMethod() {
return 'hello';
}
constructor(title: string) {
this.completed = false;
this.editing = false;
this.title = title.trim();
}
/**
* fakeMethod !!
*/
fakeMethod(): boolean {
return true;
}
}