Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nested model in angular

export class Employee {
    constructor(
        public firstName: string,
        public lastName: string,
        public email: string,
        public availability: Availability // refer to type Availability  below
    ){}
}

export class Availability {
    constructor(
        public days: string,
        public hours: string
    ){}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nested #model #angular
ADD COMMENT
Topic
Name
2+5 =