
public.out-tsc.app.shopping-list.shopping-list-service.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse-connect-testbed-backend Show documentation
Show all versions of fitnesse-connect-testbed-backend Show documentation
Test server for integration tests
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Injectable } from '@angular/core';
export var ShoppingListService = (function () {
function ShoppingListService() {
this.items = [];
}
ShoppingListService.prototype.addItem = function (item) {
this.items.push(item);
};
ShoppingListService.prototype.addItems = function (items) {
Array.prototype.push.apply(this.items, items);
};
ShoppingListService.prototype.deleteItem = function (item) {
this.items.splice(this.items.indexOf(item), 1);
};
ShoppingListService.prototype.editItem = function (oldItem, newItem) {
this.items[this.items.indexOf(oldItem)] = newItem;
};
ShoppingListService.prototype.getItems = function () {
return this.items;
};
ShoppingListService = __decorate([
Injectable(),
__metadata('design:paramtypes', [])
], ShoppingListService);
return ShoppingListService;
}());
//# sourceMappingURL=C:/Projects/FitNesseConnect/fitnesse-connect-testbed-ui/src/app/shopping-list/shopping-list-service.js.map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy