1
의 선언 뒤에 표시 할 수 있지만, tslint를 해결하기 위해 라인을 표시하지선언은,</p> <p>응용이 잘 작동, 난 내 대 코드 tslint 확장 설치 한 angular2 응용 프로그램으로 개인 인스턴스 멤버 함수
import { Injectable } from '@angular/core';
@Injectable()
export class UserProfileService{
constructor() {
}
getProfile() {
return this.profile;
}
profile: Object = {
profilePic: 'http://www.appresume.com/cv_templates/cv_2_1/conf/images/profile.jpg',
firstName: 'John',
lastName:'Doe',
detailUrl : ''
};
}
수정 사항은 무엇입니까?
전체 코드 또는 특정 코드 줄에 밑줄이 표시되어 있습니까? – Habeeb
프로필 개체에 대해 – Sajeetharan
프로필을 표시하고 있습니다. 개체 = { profilePic : 'http://www.appresume.com/cv_templates/cv_2_1/conf/images/profile.jpg', firstName : 'John', 성 : 'Doe', detailUrl : '' }; – Sajeetharan