add demo on compile and link function in directive