create a search directive. taking the books data from an external json.