directive is getting the data from outside of it