AngularJS directive for 'selecting' both flat and deep data.