title: I am trying to pass a Json response as an attribute to custom component, how to handle the response in custom component in angular 4
body: <p>I have custom tag in <code>header.component.ts</code> as below <code>&lt;app-jjviewer [json]=data.response&gt;&lt;/app-jjviewer&gt;</code> and I am passing response as json attribute.</p>
  
  <p>I have jjsonviewer.component.ts where I have @component with selector as 'app-jjviewer'</p>
  
  <p>How can I use the data of json attribute in my j<code>jsonviewer.component.ts</code>? How can I get the data? If I use console.log how to print it?</p>
  
  <p>I need to pass the data to the below function in jjsonviewer.component.ts 
   <code>$(this.el.nativeElement).jJsonViewer(this.json, {expanded: true});</code></p>
  
  <p>Angular 4</p>