import {Component, Input, OnInit} from '@angular/core'; @Component({ selector: 'hudongba-detail-attent', templateUrl: './detail-attent.component.html', styleUrls: ['./detail-attent.component.scss'] }) export class DetailAttentComponent implements OnInit { @Input() nickname: string; @Input() avatar: string; @Input() tag: string; @Input() desc: string; constructor() { this.nickname = '小明' this.avatar = 'http://img.small.hudongba.com/upload/_oss/usershopimg/201704/19/41492571134814_shop4.jpg@!shop-head'; this.tag = '主办方'; this.desc = '杭州米波网络科技有限公司'; } ngOnInit() { } }