Reimplemented sample with Angular