Skip to content

Instantly share code, notes, and snippets.

View ragowthaman's full-sized avatar
🎯
Focusing

Gowthaman Ramasamy ragowthaman

🎯
Focusing
  • Seattle BioMed
  • Seattle WA USA
View GitHub Profile
@ragowthaman
ragowthaman / 00-source_component.html
Last active October 16, 2017 10:31
Databinding via between components: Emitters: via service.ts
<i class="material-icons" (click)="setEditConsultant(element)">edit</i>
@ragowthaman
ragowthaman / 00-outer_originating_component.ts
Last active October 16, 2017 10:34
Passing data to incoming component via ng-content
total: number = 0;
@ragowthaman
ragowthaman / 00-outer_originating_component.ts
Last active October 16, 2017 10:31
Passing data to incoming component via custom property binding
checked_ids: Array<number> = [40, 50];
@ragowthaman
ragowthaman / consultant.component.ts
Created October 23, 2017 18:58
Angular 4 Get Data from server via webserivce
getConsultantDataFromServer(){
this.DataWebService.getConsultantsFromServer().subscribe(data => {
this.data = data;
console.log(data);
this.dataSource = new MyDataSource(this.data, this.paginator, this.sort, this.firstname, this.lastname);
this.data_length = data.length;`
})
}