You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rezept.js 393B

12345678910111213141516171819
  1. import Model, { attr, hasMany } from '@ember-data/model';
  2. export default class RezeptModel extends Model {
  3. @attr titel;
  4. @attr isSelected;
  5. @attr ('string') beschreibung;
  6. @attr kategorie;
  7. @hasMany('produkt') produkte;
  8. @attr gewuerze;
  9. @attr personen;
  10. @attr dauer;
  11. @attr bild;
  12. get status()
  13. {
  14. return `${this.titel} ${this.IsSelected}`
  15. }
  16. }