try to pass variable to directive for loop