My mistake, I forget the $compile is in the constructor now. So my example  does not make sense