Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so many parisons. We can declare variables with types name : string
inside a class in Angular 2 / TypeScript. How do i declare multiple variables of same type in single shot ? Is there a way to declare like name, designation, email : string
in single line ?
Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so many parisons. We can declare variables with types name : string
inside a class in Angular 2 / TypeScript. How do i declare multiple variables of same type in single shot ? Is there a way to declare like name, designation, email : string
in single line ?
1 Answer
Reset to default 5There is no syntax that would work as just writing the type for each variable individually.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742385827a4434038.html
评论列表(0条)