Facile synthesis of an aggregation-induced emission (AIE) active imidazoles for sensitive detection of trifluralin.