Integrating components with D3 and AngularJS