Querying from an array of objects using directives
From http://jsbin.com/icojuw/1/edit