Home Manual Reference Source Test Demo
public class | source

Todo

Todo Model that stores the fields related to a Todo

Constructor Summary

Public Constructor
public

constructor(description: string, complete: boolean)

Creates the Todo Model

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

toggleComplete(): void

Toggles the completion status of the Todo

Public Constructors

public constructor(description: string, complete: boolean) source

Creates the Todo Model

Params:

NameTypeAttributeDescription
description string

of the todo to be completed

complete boolean

completion status of todo

Public Members

public complete: * source

public description: * source

Public Methods

public toggleComplete(): void source

Toggles the completion status of the Todo

Return:

void