diff options
author | 杨宇千 <crupest@outlook.com> | 2019-03-11 21:30:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 21:30:22 +0800 |
commit | 4535d1fd30eb02b3fe60718235a0725e3b30049e (patch) | |
tree | d9d2ea66bb3b5586b3e0f9ac390dc3ac96096e2e /Timeline/ClientApp/src/app/todo/todo-item | |
parent | 8caef17dd3e455de27f44d13751c27ee4dfe2e1e (diff) | |
parent | 87f7b00f9414b7633a080838a725a687461efd68 (diff) | |
download | timeline-4535d1fd30eb02b3fe60718235a0725e3b30049e.tar.gz timeline-4535d1fd30eb02b3fe60718235a0725e3b30049e.tar.bz2 timeline-4535d1fd30eb02b3fe60718235a0725e3b30049e.zip |
Merge pull request #12 from crupest/strict
Use strict check of typescript compiler.
Diffstat (limited to 'Timeline/ClientApp/src/app/todo/todo-item')
-rw-r--r-- | Timeline/ClientApp/src/app/todo/todo-item/todo-item.component.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Timeline/ClientApp/src/app/todo/todo-item/todo-item.component.ts b/Timeline/ClientApp/src/app/todo/todo-item/todo-item.component.ts index 2ea6997a..b5c51229 100644 --- a/Timeline/ClientApp/src/app/todo/todo-item/todo-item.component.ts +++ b/Timeline/ClientApp/src/app/todo/todo-item/todo-item.component.ts @@ -1,4 +1,5 @@ import { Component, Input } from '@angular/core'; + import { TodoItem } from '../todo-item'; @Component({ @@ -7,7 +8,5 @@ import { TodoItem } from '../todo-item'; styleUrls: ['./todo-item.component.css', '../todo-list-color-block.css'] }) export class TodoItemComponent { - - @Input() item: TodoItem; - + @Input() item!: TodoItem; } |