60. Creating an Ingredient Model

2:36 2 གསལ་བཤད་ 2 ཤོག་གྲངས་ 54 ཆ་ཤས།

གསལ་བཤད་

ཤོག་གྲངས་

  1. 0:02

    We're going to use ingredients a lot in our application, so having a model for it makes sense. Now where do we store this ingredient model? We stored the recipe model in the recipes folder because it belongs there feature -wise, but where d…

  2. 1:20

    We, of course, want to be able to receive that as arguments, name and amount, and then assign it here as before. So this name equals name and this amount equals amount. Now, that is such a typical setup that we receive the arguments we want…