3
각도이 지침에 정의 된 메소드를 호출하는 방법, 내가 주입 한 지침은내가 2 각도에 새로운 오전
@Component({
selector: 'select-me',
templateUrl: 'app/template.html',
directives: [BackgroundChange] // I want to access this same instance to make the dynamic changes
})
export class PageComponent {
constructor(private backgroundChange:BackgroundChange) {
// I guess this will create new instance of BackgroundChange
}
}
나는 PageComponent에서 동적으로 일부 변경을 할 BackgroundChange에서 availabe 메소드를 호출 할