Angular TypeScript: “Unexpected token. A constructor, method, accessor, or property was expected.”

前端 未结 0 1594
野趣味
野趣味 2020-11-29 01:45

What\'s wrong with this class?

export class Product {

  constructor(
    public id?: number,
    public name?: string,         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题