Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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;
    } 

}
Source by www.sneppets.com #
 
PREVIOUS NEXT
Tagged: #angular #model #class
ADD COMMENT
Topic
Name
8+4 =