title: angular2 how to get data by JSON and render them in html
body: <p>I trying to render JSON data, 
  i do as follows...</p>
  
  <pre><code>@Component({
  selector:'free-ip',
  templateUrl:'./freeip.component.html'
  })
  
  export class FreeIpComponent implements OnInit{
  
  getData:string[];
  
  constructor(private http: FreeIpService){}
  
  getFreeIp(){
  this.http.getData()
    .subscribe(
      data =&gt; this.getData
      );
  }
  
  ngOnInit(){
    this.getFreeIp();
  }
  }
  </code></pre>
  
  <p>My JSON format...</p>
  
  <pre><code> [{"name":"1(К2)","ipange":"85.143.77.64/26","count":14},
   {"name":"1(К2)","ipange":"109.123.184.128/26","count":31},
   {"name":" 7","ipange":"109.123.188.128/25","count":60}]
  </code></pre>
  
  <p>Please help me, how to render data to html?
  Thank you.</p>