Answers for "angular 12 model class"

0

angular 12 model class

//Define how single recipe should look like - Blueprint for object
export class Recipe {

    public name : string;
    public description : string;
    public imagePath : string;

    constructor(name : string, desc : string, imagePath : string){
        this.name = name;
        this.description = desc;
        this.imagePath = imagePath;
    } 

}
Posted by: Guest on January-18-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language