Skip to content

Commit

Permalink
add code
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarobock committed May 25, 2017
1 parent ecc57f6 commit 8f6273f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/domain/recipe.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { ChangeService } from '../services/change.service';
import { CalcService } from '../services/calc.service';

/**
* @todo #general: add code to view
*/
export interface Recipe {
code: string;
name: string;
style: string;
vital: Vital;
Expand Down Expand Up @@ -103,7 +107,12 @@ export class Bom1Recipe implements Recipe {
get object(): any {
return this.obj;
}

get code(): string {
return this.obj.code;
}
set code(value: string) {
this.obj.code = value;
}
get name(): string {
return this.obj.NAME;
}
Expand Down

1 comment on commit 8f6273f

@0pdd
Copy link

@0pdd 0pdd commented on 8f6273f May 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle general-53dcc3ad discovered in src/app/domain/recipe.ts and submitted as #16.

Please sign in to comment.