feat: support angular 1.2.0 - switch from compile to template function in directive