I have playlist component as a child Component, the parent pass in an input 'playlist' which is an Object of Array.
playList: {
headerPlaylists: Array<any>,
bodyPlaylists: Array<any>
} = {
headerPlaylists: [],
bodyPlaylists: []
}
The Child Component as below
@Component({
selector: 'playlist',
styleUrls: ['app/channel/playlist/playlist.css'],
templateUrl: 'app/channel/playlist/playlist.html',
directives: [VideoItemComponent],
inputs: ['playlist']
})
My question is, in my class, how do I get access to the inputs passed in from it's parent component, say, simply console.log(playlist), is there a way to do that?
export class PlaylistComponent {
constructor() {
}
}