From b2a3acea0d0f66028c9ce5fad02d4ecc64abf70c Mon Sep 17 00:00:00 2001 From: Israel Lavi Date: Tue, 7 Aug 2018 10:54:17 +0300 Subject: Initial commit. Adding files needed for Linux Foundation. Change-Id: I9f2b4851a5ae01f83800c7f8bab8608a2221c730 Issue-ID: SDC-1608 Signed-off-by: Israel Lavi --- src/angular/checklist/checklist.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/angular/checklist/checklist.component.ts') diff --git a/src/angular/checklist/checklist.component.ts b/src/angular/checklist/checklist.component.ts index 386cd3e..b512378 100644 --- a/src/angular/checklist/checklist.component.ts +++ b/src/angular/checklist/checklist.component.ts @@ -1,7 +1,7 @@ import { Component, EventEmitter, Input, Output } from "@angular/core"; import { ChecklistModel } from "./models/Checklist"; import { ChecklistItemModel } from "./models/ChecklistItem"; -import template from "./checklist.component.html"; +import { template } from "./checklist.component.html"; @Component({ selector: 'sdc-checklist', @@ -15,7 +15,7 @@ export class ChecklistComponent { // push/pop the checkbox value if (checkbox.isChecked) { currentChecklistModel.selectedValues.push(checkbox.value); - }else { + } else { const index: number = currentChecklistModel.selectedValues.indexOf(checkbox.value); currentChecklistModel.selectedValues.splice(index, 1); } -- cgit