Skip to content

Commit e92267a

Browse files
committed
Fix compile errors
1 parent 962c563 commit e92267a

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

app/pages/list/list.component.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export class ListPage implements OnInit {
8484
this.subscr.next(WrappedValue.wrap(this.items));
8585
}
8686

87-
delete(grocery) {
88-
this._groceryListService.delete(grocery.id)
89-
.subscribe(() => {
90-
var index = this.groceryList.indexOf(grocery);
91-
this.groceryList.splice(index, 1);
92-
});
93-
}
87+
//delete(grocery) {
88+
//this._groceryListService.delete(grocery.id)
89+
//.subscribe(() => {
90+
//var index = this.groceryList.indexOf(grocery);
91+
//this.groceryList.splice(index, 1);
92+
//});
93+
//}
9494
}

app/shared/user/user.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var validator = require("email-validator");
33
export class User {
44
email: string;
55
password: string;
6-
isValidEmail: function() {
6+
isValidEmail() {
77
return validator.validate(this.email);
88
}
99
}

tsconfig.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
"app/shared/grocery/grocery-list.service.ts",
1616
"app/shared/user/user.ts",
1717
"app/shared/user/user.service.ts",
18-
"app/shared/view-models/grocery-list.ts",
19-
"app/shared/view-models/user-view-model.ts",
2018
"app/pages/list/list.component.ts",
2119
"app/pages/login/login.component.ts",
2220
"app/pages/register/register.component.ts",
@@ -30,4 +28,4 @@
3028
"node_modules",
3129
"platforms"
3230
]
33-
}
31+
}

0 commit comments

Comments
 (0)